call_id: str

An identifier used to map this custom tool call to a tool call output.

input: str

The input for the custom tool call generated by the model.

name: str

The name of the custom tool being called.

type: Literal["custom_tool_call"]

The type of the custom tool call. Always custom_tool_call.

id: Optional[str]

The unique ID of the custom tool call in the OpenAI platform.

agent: Optional[Agent]

The agent that produced this item.

agent_name: str

The canonical name of the agent that produced this item.

async_: Optional[bool]

Whether the custom tool call runs asynchronously.

caller: Optional[Caller]

The execution context that produced this tool call.

One of the following:
class CallerDirect: …
type: Literal["direct"]
class CallerProgram: …
caller_id: str

The call ID of the program item that produced this tool call.

type: Literal["program"]
namespace: Optional[str]

The namespace of the custom tool being called.