Commit 1af73bc
authored
auto validate tool arguments, improve validation messages (#200)
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 @kenzieschmoll1 parent 0b22b67 commit 1af73bc
File tree
15 files changed
+591
-406
lines changed- pkgs
- dart_mcp_server
- lib/src
- mixins
- test_fixtures/counter_app/android
- app/src/main/java/io/flutter/plugins
- test/tools
- dart_mcp
- lib/src
- api
- server
- test
- api
- server
15 files changed
+591
-406
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
6 | 16 | | |
7 | 17 | | |
8 | 18 | | |
| |||
0 commit comments