We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1225c1 commit 94bc9ebCopy full SHA for 94bc9eb
langchain_mcp_adapters/tools.py
@@ -193,6 +193,8 @@ def _parse_field(props):
193
from langgraph.prebuilt import InjectedState
194
model_fields = _parse_model_fields(args, injected_state)
195
196
+ # recreate a dynamic model based on the parsed JSON schema, which will be properly parsed
197
+ # with annotations for the InjectedState
198
args_schema = create_model(tool.name, **{k: v for k, v in model_fields.items()})
199
200
return StructuredTool(
0 commit comments