Skip to main content
Tool results are untrusted input. Averta checks them before they re-enter the model loop.

Responses API

For Responses API, tool results are function_call_output items.
The wrapper extracts the new function_call_output items and checks them before forwarding the continuation to OpenAI.

Chat Completions

For Chat Completions, tool results are tool 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