fix(custom-tools): preserve arg descriptions and enforce validation#19916
fix(custom-tools): preserve arg descriptions and enforce validation#19916khimaros wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found several related PRs: Related PRs (not duplicates of 19916):
Note: The current PR (#19916) appears to be a rebased version of #15957 against the latest dev branch. You should verify whether #15957 is still open or if it should be closed in favor of #19916. |
812284c to
dcc1bd7
Compare
rehydrate cross-instance zod metadata so .describe() survives JSON schema export, and validate tool input at runtime before execute.
dcc1bd7 to
22563bc
Compare
|
@rekram1-node this continues to be a major issue for custom tool which confuses non-SOTA models like qwen3.5 or gemma4. would be great to have someone look at this. |
|
thanks for keeping this up to date! I wonder if you'd be willing to add a |
rehydrate cross-instance zod metadata so .describe() survives JSON schema export, and validate tool input at runtime before execute.
based on #15957 by @ashleytowner but rebased against latest dev branch.
Issue for this PR
Closes #4357
Type of change
What does this PR do?
resolve an issue where custom tools created by plugins do not have their parameter descriptions passed through to the LLM.
How did you verify your code works?
i tested my custom plugin with it: https://github.com/khimaros/opencode-evolve and descriptions on params are now present.
Checklist