import type { AgentMessageInputContent } from "./AgentMessageInputContent"; import type { ConfigurationReasoning } from "./ConfigurationReasoning"; import type { ContentItem } from "./ContentItem"; import type { FunctionCallOutputBody } from "./FunctionCallOutputBody"; import type { InternalChatMessageMetadataPassthrough } from "./InternalChatMessageMetadataPassthrough"; import type { LocalShellAction } from "./LocalShellAction"; import type { LocalShellStatus } from "./LocalShellStatus"; import type { MessagePhase } from "./MessagePhase"; import type { ReasoningItemContent } from "./ReasoningItemContent"; import type { ReasoningItemReasoningSummary } from "./ReasoningItemReasoningSummary"; import type { ResponseItemId } from "./ResponseItemId"; import type { WebSearchAction } from "./WebSearchAction"; export type ResponseItem = { "type": "message"; id?: ResponseItemId; role: string; content: Array; phase?: MessagePhase; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "agent_message"; id?: ResponseItemId; author: string; recipient: string; content: Array; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "reasoning"; id?: ResponseItemId; summary: Array; content?: Array; encrypted_content: string | null; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "local_shell_call"; /** * Legacy id field retained for compatibility with older payloads. */ id?: ResponseItemId; /** * Set when using the Responses API. */ call_id: string | null; status: LocalShellStatus; action: LocalShellAction; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "function_call"; id?: ResponseItemId; name: string; namespace?: string; arguments: string; encrypted_function_args?: Array; call_id: string; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "tool_search_call"; id?: ResponseItemId; call_id: string | null; status?: string; execution: string; arguments: unknown; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "function_call_output"; id?: ResponseItemId; call_id?: string; name?: string; namespace?: string; output: FunctionCallOutputBody; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "custom_tool_call"; id?: ResponseItemId; status?: string; call_id: string; name: string; namespace?: string; input: string; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "custom_tool_call_output"; id?: ResponseItemId; call_id: string; name?: string; output: FunctionCallOutputBody; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "tool_search_output"; id?: ResponseItemId; call_id: string | null; status: string; execution: string; tools: unknown[]; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "web_search_call"; id?: ResponseItemId; status?: string; action?: WebSearchAction; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "image_generation_call"; id?: ResponseItemId; status: string; revised_prompt?: string; result: string; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "compaction"; id?: ResponseItemId; encrypted_content: string; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "configuration_update"; reasoning: ConfigurationReasoning; } | { "type": "compaction_trigger"; } | { "type": "context_compaction"; id?: ResponseItemId; encrypted_content?: string; internal_chat_message_metadata_passthrough?: InternalChatMessageMetadataPassthrough; } | { "type": "other"; }; //# sourceMappingURL=ResponseItem.d.ts.map