Responses API
For Responses API, tool results arefunction_call_output items.
function_call_output items and checks them before forwarding the continuation to OpenAI.
Chat Completions
For Chat Completions, tool results aretool role messages.
Block Behavior
If policy blocks the tool result:- the wrapper throws
AvertaSdkError - the continuation request is not sent to OpenAI
- the model does not see the returned tool content
Decision Callback
Debugging
| Symptom | Check |
|---|---|
| No tool-result decision | Confirm the continuation contains only provider-native tool-result items for the current turn. |
| Tool result blocks unexpectedly | Inspect the returned content for prompt injection or unsafe instructions. |
| Tool name is missing in logs | Confirm the original tool call was checked and has a stable call_id. |