File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,12 @@ class CurrentWeatherTool extends Tool
201
201
/**
202
202
* Get the tool's input schema.
203
203
*
204
- * @return array<string , \Illuminate\JsonSchema\ JsonSchema >
204
+ * @return array<string , JsonSchema >
205
205
*/
206
206
public function schema(JsonSchema $schema): array
207
207
{
208
208
return [
209
- 'location' => $schema:: string()
209
+ 'location' => $schema-> string()
210
210
->description('The location to get the weather for.')
211
211
->required(),
212
212
];
@@ -303,16 +303,16 @@ class CurrentWeatherTool extends Tool
303
303
/**
304
304
* Get the tool's input schema.
305
305
*
306
- * @return array<string , JsonSchema >
306
+ * @return array<string , \Illuminate\JsonSchema\ JsonSchema >
307
307
*/
308
308
public function schema(JsonSchema $schema): array
309
309
{
310
310
return [
311
- 'location' => $schema:: string()
311
+ 'location' => $schema-> string()
312
312
->description('The location to get the weather for.')
313
313
->required(),
314
314
315
- 'units' => $schema:: array()
315
+ 'units' => $schema-> array()
316
316
->enum(['celsius', 'fahrenheit'])
317
317
->description('The temperature units to use.')
318
318
->default('celsius'),
You can’t perform that action at this time.
0 commit comments