Skip to content

Validating parameters before hitting the query #708

@jasdeep06

Description

@jasdeep06

Prerequisites

Question

As in most real world consumption of this project, LLMs will be used to trigger these tools. LLMs might pick incorrect parameter or we might want to alter the parameters on some conditions. In a fastmcp implementation, we can put the validation/alteration inside the tool but here as only queries can be fired, what's the best place to put the validation/alteration in? Please keep in mind, langchain gives no way to interrupt tool call when parameters are picked before calling the tool.

Code

No response

Additional Details

No response

Metadata

Metadata

Assignees

Labels

type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.type: questionRequest for information or clarification.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions