Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/modules/harness/tool.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,11 @@ are handled separately:
governed by `RunPolicy::invalid_args: InvalidArgsPolicy`. `Fail` (default,
historical) aborts the turn; `ReturnToolError` injects a repairable tool-error
message (carrying the validation detail and the expected schema) and continues.
`NormalizeThenReturnToolError` first repairs common object-schema transport
shapes (a JSON object encoded as a string, including markdown fences, or a
non-object for an object schema with no required fields), then returns any
remaining validation failure as a tool error. Schemas that accept top-level
primitives or arrays are left untouched.
- **Unparseable** (malformed JSON the provider could not parse into arguments at
all) is surfaced by the provider as a `ToolCall` with `invalid: Some(reason)`
and the raw string preserved in `arguments`. Small local models (Ollama, LM
Expand Down
Loading