Skip to content

fix: exclude *args/**kwargs from required tool parameters (#22134)#22138

Open
C1-BA-B1-F3 wants to merge 2 commits into
run-llama:mainfrom
C1-BA-B1-F3:fix/tool-schema-kwargs
Open

fix: exclude *args/**kwargs from required tool parameters (#22134)#22138
C1-BA-B1-F3 wants to merge 2 commits into
run-llama:mainfrom
C1-BA-B1-F3:fix/tool-schema-kwargs

Conversation

@C1-BA-B1-F3

Copy link
Copy Markdown

Fixes #22134. Skip VAR_POSITIONAL and VAR_KEYWORD parameters when generating tool schemas from function signatures.

When decode_responses=True, Redis returns strings instead of bytes.
Fix key.decode() to check isinstance(key, bytes) first.
…22134)

Skip VAR_POSITIONAL and VAR_KEYWORD parameters when generating
tool schemas from function signatures.
@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 25, 2026
@gautamvarmadatla

gautamvarmadatla commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

hi @C1-BA-B1-F3 issue author here, please see #22135 it already has the fix. I already created it along with the issue...
Please see existing PRs before mass opening AI generated PRs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Tool schema marks **kwargs as a required (untyped) parameter, forcing the LLM to fill it

2 participants