--- name: "hermes-2-pro-mistral" config_file: | mmap: true context_size: 8192 stopwords: - "<|im_end|>" - "" - "<|eot_id|>" - "<|end_of_text|>" function: disable_no_action: true grammar: # Uncomment the line below to enable grammar matching for JSON results if the model is breaking # the output. This will make the model more accurate and won't break the JSON output. # This however, will make parallel_calls not functional (it is a known bug) # mixed_mode: true disable: true parallel_calls: true expect_strings_after_json: true json_regex_match: - "(?s)(.*?)" - "(?s)(.*)" capture_llm_results: - (?s)(.*?) replace_llm_results: - key: (?s)(.*?) value: "" template: chat: | {{.Input -}} <|im_start|>assistant chat_message: | <|im_start|>{{if eq .RoleName "assistant"}}assistant{{else if eq .RoleName "system"}}system{{else if eq .RoleName "tool"}}tool{{else if eq .RoleName "user"}}user{{end}} {{- if .FunctionCall }} {{- else if eq .RoleName "tool" }} {{- end }} {{- if .Content}} {{.Content }} {{- end }} {{- if .FunctionCall}} {{toJson .FunctionCall}} {{- end }} {{- if .FunctionCall }} {{- else if eq .RoleName "tool" }} {{- end }}<|im_end|> completion: | {{.Input}} function: | <|im_start|>system You are a function calling AI model. Here are the available tools: {{range .Functions}} {'type': 'function', 'function': {'name': '{{.Name}}', 'description': '{{.Description}}', 'parameters': {{toJson .Parameters}} }} {{end}} You should call the tools provided to you sequentially Please use XML tags to record your reasoning and planning before you call the functions as follows: {step-by-step reasoning and plan in bullet points} For each function call return a json object with function name and arguments within XML tags as follows: {"arguments": , "name": } <|im_end|> {{.Input -}} <|im_start|>assistant