tools.json 696 B

123456789101112131415161718192021222324252627282930
  1. [
  2. {
  3. "type": "function",
  4. "function": {
  5. "name": "get_current_weather",
  6. "description": "Get the current weather",
  7. "parameters": {
  8. "type": "object",
  9. "properties": {
  10. "location": {
  11. "type": "string",
  12. "description": "The city and state, e.g. San Francisco, CA"
  13. },
  14. "format": {
  15. "type": "string",
  16. "enum": [
  17. "celsius",
  18. "fahrenheit"
  19. ],
  20. "description": "The temperature unit to use. Infer this from the user's location."
  21. }
  22. },
  23. "required": [
  24. "location",
  25. "format"
  26. ]
  27. }
  28. }
  29. }
  30. ]