Skip to content

Reverse the MethodToolCallback's ToolContext validation logic #2337

@tzolov

Description

@tzolov

Change the validation logic in MethodToolCallback to check if a ToolContext argument is defined by the method but not provided in the request.
This would ensure that methods that expect a ToolContext parameter receive one.

Current logic is checking if a ToolContext is provided but not supported by the method (e.g. the reverse)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions