Continuation Shape
The wrapper evaluates tool results when the final user message is a pure Anthropic tool-result continuation:Pure Means Pure
The final user message must contain onlytool_result blocks. This is valid:
Supported Content
Tool-result content can be:- a string
- an array of text-only content blocks
Block Behavior
If a tool-result decision isblock:
- the wrapper throws
AvertaSdkError - the continuation request is not sent to Anthropic
- the model does not see the tool output
Decision Callback
Debugging
| Symptom | Check |
|---|---|
| No tool-result decision | Confirm the final user message contains tool_result blocks. |
| Request fails before Anthropic is called | Confirm the final user message does not mix tool results with text or other blocks. |
| Tool-result content is rejected | Use a string or text-only content blocks. |
| Tool name is missing from your own logs | Log the event.tool.name from the tool_result decision event. |