-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
We needed to override the tool args_schema for zero parameter tools use it with a langgraph agent:
for tool in tools:
if not 'properties' in tool.args_schema:
tool.args_schema['properties'] = {}
if properties isn't defined as empty object in the tool, this error is returned:
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid schema for function 'get-schema': In context=(), object schema missing properties.", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}},
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers