response Module

Classes

Response

Response details from agent execution.

Accepts plain strings (backward compat), structured OutputMessages, or a dict for tool call results (per OTEL spec).

Data

ResponseMessagesParam

Accepted type for Response.messages.

Supports plain strings, OutputMessages, or a structured tool result dict. A dict[str, object] is treated as a tool call result per OTEL spec and serialized directly via json.dumps.

alias of Union[str, list[str], OutputMessages, dict[str, object]]

ResponseMessagesParam