llama3-groq-tool-use.out 1.6 KB

123456789101112131415161718192021222324
  1. <|start_header_id|>system<|end_header_id|>
  2. You are a knowledgeable assistant. You can answer questions and perform tasks. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions. For each function call return a json object with function name and arguments within <tool_call></tool_call> XML tags as follows:
  3. <tool_call>
  4. {"name": <function-name>,"arguments": <args-dict>}
  5. </tool_call>
  6. Here are the available tools:
  7. <tools> {"name":"get_current_weather","description":"Get the current weather","parameters":{"type":"object","required":["location","format"],"properties":{"format":{"type":"string","description":"The temperature unit to use. Infer this from the user's location.","enum":["celsius","fahrenheit"]},"location":{"type":"string","description":"The city and state, e.g. San Francisco, CA"}}}} </tools><|eot_id|><|start_header_id|>user<|end_header_id|>
  8. What's the weather like today in Paris?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
  9. <tool_call>
  10. {"name": "get_current_weather", "arguments": {"format":"celsius","location":"Paris, France"}}
  11. </tool_call><|eot_id|><|start_header_id|>tool<|end_header_id|>
  12. <tool_response>
  13. 22
  14. </tool_response><|eot_id|><|start_header_id|>assistant<|end_header_id|>
  15. The current temperature in Paris, France is 22 degrees Celsius.<|eot_id|><|start_header_id|>user<|end_header_id|>
  16. What's the weather like today in San Francisco and Toronto?<|eot_id|><|start_header_id|>assistant<|end_header_id|>