Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put "unvalidated" args in separate argument during argument validation #23

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

j4ys0n
Copy link

@j4ys0n j4ys0n commented Mar 24, 2025

When tool arguments are validated against the defined schema, instead of removing arguments that aren't in the schema, this will move them to a separate argument called extraArgs this is available in the tools' execution handler. This was done to be able to handle sensitive values like api keys or authentication tokens without adding them to the schema that the LLM will use.

@punkpeye
Copy link
Owner

@j4ys0n as I am reviewing this and thinking through it, would it not make more sense to pass those hidden values in headers?

@punkpeye
Copy link
Owner

Alternatively, if the goal is to get extra params without defining them in the schema, could you not just change the schema to use .passthrough() and get the extra params that way?

@j4ys0n
Copy link
Author

j4ys0n commented Mar 29, 2025

Apologies for the delay. Yeah, could do passthrough. Up to you. I kind of like having the args separate for some reason but I don't have a great reason for it.

@j4ys0n
Copy link
Author

j4ys0n commented Apr 2, 2025

@punkpeye want me to change this or no?

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