Thanks to visit codestin.com
Credit goes to github.com

Skip to content

how to introduce the error handling for the tools ? #2147

@feng-1985

Description

@feng-1985

Prerequisites

Question

Using the toolbox langchain (with mysql mcp), when the parameter is wrong parse, how to introduce the error handling for the tools, lets the model retry parsing and call the tool again ?

(Currently, when the parameter is wrong, i will search the similar value from db, and wrap it as the tool message, but how to make the model call tool again with the correct value ?)

refer:
https://docs.langchain.com/oss/python/langgraph/thinking-in-langgraph#llm-recoverable

Code

No response

Additional Details

No response

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.status: help wantedStatus: Unplanned work open to contributions from the community.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions