Tool Models¶
Inputs for the tool-scanning fields on the inbound and outbound filter endpoints. Both accept OpenAI and Anthropic formats.
ToolCallInput¶
A tool call to scan before execution (used by tool_call on the outbound endpoint).
| Field | Type | Description |
|---|---|---|
id |
string |
OpenAI tool call ID. Accepted, not used in the scan. |
type |
string |
OpenAI tool type. Accepted, not used in the scan. |
function |
object |
OpenAI function definition (name, arguments). |
name |
string |
Anthropic tool name. |
input |
object |
Anthropic tool arguments. |
Send either function, or both name and input. Anything else is answered 422. When function is present, its name and arguments are used. arguments may be a JSON string or an object.
ToolResponseInput¶
A tool result to scan before returning it to the LLM (used by tool_response on the inbound endpoint).
| Field | Type | Required | Description |
|---|---|---|---|
content |
string |
Yes | Tool result content. |
tool_call_id |
string |
No | OpenAI tool call ID. |
tool_use_id |
string |
No | Anthropic tool use ID. |
One of tool_call_id or tool_use_id is required. A tool response with neither is answered 422.