()
| 3 | }; |
| 4 | |
| 5 | const toolGetWeather = () => ({ |
| 6 | run: getWeather, |
| 7 | type: 'function', |
| 8 | function: { |
| 9 | name: 'getWeather', |
| 10 | description: 'Get the current weather of a given location', |
| 11 | parameters: { |
| 12 | type: 'object', |
| 13 | required: ['location'], |
| 14 | properties: { |
| 15 | location: { |
| 16 | type: 'string', |
| 17 | description: 'The city and state, e.g. San Francisco, CA', |
| 18 | }, |
| 19 | }, |
| 20 | }, |
| 21 | }, |
| 22 | }); |
| 23 | export default toolGetWeather; |