refactor(tools): move ToolExecutionException to Abstractions

This commit is contained in:
EugeneTes
2026-09-26 20:12:19 +02:00
parent f39b8a84c1
commit aaca3ad15a
5 changed files with 44 additions and 8 deletions

View File

@@ -126,8 +126,8 @@ Implement `ITool` directly or derive from `Tool<TArgs>`; the JSON Schema is gene
(records with `[Description]` attributes work well; nullable properties are optional). `DelegateTool<TArgs>`
builds a tool from a lambda.
- Throw to produce an error result. `ToolExecutionException(result)` returns content and details while
marking the result as an error.
- Throw to produce an error result. `ToolExecutionException(result)` (in `Volcanic.AgenticCore.Abstractions.Tools`)
returns content and details while marking the result as an error.
- `ToolResult.Content` is what the model sees; `Details` is structured data for hosts.
- `Terminate = true` on every result of a batch ends the run without another model call.
- `ExecutionMode = Sequential` forces the whole batch to run one at a time (the built-in `edit`/`write` do this).