Repository navigation
Commit cea2683
committed
refactor(agent-tools): pass bare caxton tools
googleapis/python-genai#3060 is fixed in google-genai 2.31.0, which no
longer adds "type": "object" to optional scalar parameters in callable
tool schemas. Pass Caxton's tool functions as bare callables again
instead of wrapping them in FunctionDeclaration, and require
google-genai>=2.31.0 in Caxton and Popper (which also passes bare
callables with optional scalar parameters). Keep coerce_tool_args as a
runtime guard against malformed arguments.1 parent 03f25a3 commit cea2683
2 files changed
Lines changed: 2 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
2538 | 2538 | | |
2539 | 2539 | | |
2540 | 2540 | | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | 2541 | | |
2559 | 2542 | | |
2560 | 2543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments