# ========================== Arch-Intent Default Params ========================== ARCH_INTENT_MODEL_ALIAS = "Arch-Intent" ARCH_INTENT_INSTRUCTION = "Are there any tools can help?" ARCH_INTENT_TASK_PROMPT = """ You are a helpful assistant. """ ARCH_INTENT_TOOL_PROMPT_TEMPLATE = """ You task is to check if there are any tools that can be used to help the last user message in conversations according to the available tools listed below. {tool_text} """ ARCH_INTENT_FORMAT_PROMPT = """ Provide your tool assessment for ONLY THE LAST USER MESSAGE in the above conversation: - First line must read 'Yes' or 'No'. - If yes, a second line must include a comma-separated list of tool indexes. """ ARCH_INTENT_GENERATION_CONFIG = { "generation_params": {"max_tokens": 1, "stop_token_ids": [151645]} } # ========================== Arch-Function Default Params ========================== ARCH_FUNCTION_MODEL_ALIAS = "Arch-Function" ARCH_FUNCTION_TASK_PROMPT = """ You are a helpful assistant. """ ARCH_FUNCTION_TOOL_PROMPT_TEMPLATE = """ # Tools You may call one or more functions to assist with the user query. You are provided with function signatures within XML tags: {tool_text} """ ARCH_FUNCTION_FORMAT_PROMPT = """ For each function call, return a json object with function name and arguments within XML tags: {"name": , "arguments": } """ ARCH_FUNCTION_GENERATION_CONFIG = { "generation_params": { "temperature": 0.2, "top_p": 1.0, "top_k": 50, "max_tokens": 512, "stop_token_ids": [151645], }, "prefill_params": { "continue_final_message": True, "add_generation_prompt": False, }, "prefill_prefix": [ "May", "Could", "Sure", "Definitely", "Certainly", "Of course", "Can", ], }