Skip to content

auto validate tool arguments, improve validation messages #200

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

Merged
merged 4 commits into from
Jun 27, 2025

Conversation

jakemac53
Copy link
Contributor

Marking this as closing #197 - it should significantly help the LLM figure out what it did wrong. The error would now be something like "Value <root> is not of type List<dynamic> at path #root["roots"]".

I made a fair number of changes to the validation errors here, namely only emitting errors for the leaf node where the error actually happened and not the entire path up. I don't think that extra info was helpful.

cc @kenzieschmoll

Copy link

PR Health

Changelog Entry ✔️
Package Changed Files

Changes to files need to be accounted for in their respective changelogs.

@jakemac53 jakemac53 merged commit 1af73bc into main Jun 27, 2025
19 checks passed
@jakemac53 jakemac53 deleted the validate-tools branch June 27, 2025 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants