Skip to content

fix(validate): skip runtime-injected tool parameters - #157

Merged
Asaf-prog merged 1 commit into
extra-org:mainfrom
Rsakhuja:fix/114-skip-runtime-injected-params
Nov 2, 2026
Merged

Asaf-prog merged 1 commit into
extra-org:mainfrom
Rsakhuja:fix/114-skip-runtime-injected-params

Conversation

@Rsakhuja

@Rsakhuja Rsakhuja commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #156 for issue #114 to ensure that runtime tool parameters do not send warnings when a description isn't passed. A new check _is_runtime_injected is added to skip parameters LangChain fills in at runtime but never sends to the model.

The parameter-description check warned about parameters LangChain fills
in at runtime and leaves out of the model-facing tool schema, e.g.
`config: RunnableConfig` produced "parameter "config" is missing a
description" although `tool_call_schema` exposes only the other params.

Skip them in the static scan, mirroring langchain_core's filtering:
`callbacks`/`run_manager` by name, a bare `RunnableConfig` (an optional
one is still shown to the model), `ToolRuntime`, and `Annotated[...]`
with an `Injected*` marker (InjectedToolArg, InjectedToolCallId,
LangGraph InjectedState/InjectedStore). Matching is by name, since the
scan never imports tool code.

Follow-up to extra-org#156 review; step toward extra-org#114.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mintlify

mintlify Bot commented Nov 1, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit b482c0e.

Approve preview

@Asaf-prog
Asaf-prog merged commit 23b9482 into extra-org:main Nov 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants