8000 Add Schema validation by gspencergoog · Pull Request #126 · dart-lang/ai · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Schema validation #126

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 7 commits into from
May 19, 2025
Merged

Conversation

gspencergoog
Copy link
Contributor

Description

This adds schema validation to the MCP Schema extension so that we can validate the returned values in tests. It could also be used to validate results from LLMs and make them try again if they don't match the schema.

Also moved the tests into subdirs matching the lib structure.

Tests

  • Added tests for all the different validation failure modes.

Copy link
github-actions bot commented May 13, 2025

PR Health

Changelog Entry ✔️
Package Changed Files

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

@gspencergoog gspencergoog force-pushed the schema_validation branch 3 times, most recently from 5e6404f to 0464ec4 Compare May 15, 2025 22:12
@gspencergoog
Copy link
Contributor Author

Okay, this is ready to be committed once the tests pass. I added one more minor change after you approved.

@jakemac53 jakemac53 merged commit e89ef17 into dart-lang:main May 19, 2025
15 checks passed
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
0