Skip to content

Commit 849558c

Browse files
committed
fix: adds missing parameter types
1 parent b5bb8ee commit 849558c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/DTO/FunctionDeclaration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static function getJsonSchema(): array
102102
'description' => 'A description of what the function does.',
103103
],
104104
'parameters' => [
105-
'type' => 'object',
105+
'type' => ['string', 'number', 'boolean', 'object', 'array', 'null'],
106106
'description' => 'The JSON schema for the function parameters.',
107107
],
108108
],

0 commit comments

Comments
 (0)