Skip to content

Tool error handling #16

@5aumit

Description

@5aumit

Need to implement error handling for tool calls. Sometimes it passes incorrect arguments, example below

BadRequestError: Error code: 400 - {'error': {'message': 'tool call validation failed: parameters for tool list_runs_tool did not match schema: errors: [`/order_by`: expected string, but got array, `/order_by`: expected null, but got array]', 'type': 'invalid_request_error', 'code': 'tool_use_failed', 'failed_generation': '<function=list_runs_tool>{"experiment_ids": ["3"], "max_results": 100, "order_by": ["metrics.train_loss ASC"], "status": ["FINISHED"]}</function>\n\n'}}

Reference for fix : LangChain Docs

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions