import { z } from 'zod'; import { Agent, type ToolUseBehavior } from './agent'; export { buildAgentIdentityMap } from './runStateIdentity'; import { RunItem, RunToolApprovalItem, RunToolCallOutputItem } from './items'; import type { ModelResponse, ModelSettings } from './model'; import { RunContext } from './runContext'; import { type ReasoningItemIdPolicy } from './runner/items'; import { AgentToolUseTracker } from './runner/toolUseTracker'; import { NextStep } from './runner/steps'; import { type ProcessedResponse } from './runner/types'; import type { AgentSpanData, Span } from './tracing/spans'; import { Usage } from './usage'; import { Trace } from './tracing/traces'; import * as protocol from './types/protocol'; import { AgentInputItem, UnknownContext } from './types'; import type { InputGuardrailResult, OutputGuardrailResult } from './guardrail'; import type { ToolInputGuardrailResult, ToolOutputGuardrailResult } from './toolGuardrail'; import { Tool } from './tool'; import type { AgentToolInvocation } from './agentToolInvocation'; /** * The schema version of the serialized run state. This is used to ensure that the serialized * run state is compatible with the current version of the SDK. * If anything in this schema changes, the version will have to be incremented. * * Version history. * - 1.0: Initial serialized RunState schema. * - 1.1: Adds optional currentTurnInProgress, conversationId, and previousResponseId fields, * plus broader tool_call_output_item rawItem variants for non-function tools. Older 1.0 * payloads remain readable but resumes may lack mid-turn or server-managed context precision. * - 1.2: Adds pendingAgentToolRuns for nested agent tool resumption. * - 1.3: Adds computer tool approval items to serialized tool_approval_item unions. * - 1.4: Adds optional toolInput to serialized run context. * - 1.5: Adds optional reasoningItemIdPolicy to preserve reasoning input policy across resume. * - 1.6: Adds optional requestId to serialized model responses. * - 1.7: Adds optional approval rejection messages. * - 1.8: Adds tool search item variants, batched computer actions, and GA computer tool * aliasing to serialized run state payloads. * - 1.9: Adds optional sandbox session persistence with a versioned session-state * envelope for sandbox-agent resume. * - 1.10: Adds optional stable agent identity keys so duplicate-name agent graphs can * serialize and resume without ambiguous name resolution. * - 1.11: Allows null maxTurns to persist runs without a turn limit. * - 1.12: Adds optional missing function tool calls to processed responses. * - 1.13: Adds optional SDK-only customData on tool output run items. * - 1.14: Adds Programmatic Tool Calling program items, outputs, caller linkage, * and optional assistant message phases. * - 1.15: Adds reconstructable sandbox environment value references and sandbox * session-state envelope version 2. * - 1.16: Adds compaction items, category-aware function tool keys, and agent-scoped * function approvals, including aliases for legacy pending-run accessors. * - 1.17: Adds durable local tool execution provenance and blocked-output session * persistence bookkeeping. * - 1.18: Adds sandbox session-state envelope version 3 so credential-redacted * mount authority cannot be consumed by older SDKs, and binds per-call approvals * and committed local tool results to canonical invocation fingerprints. It also * scopes persistent hosted MCP approvals by server label and tool name, preserves * JSON-compatible tool outputs as structured data, and adds durable pending input * and accepted-response resume state. * - 1.19: Lets an exact call approval decision override a sticky decision for the * same canonical approval identity, and adds sandbox session-state envelope version 4 * so Docker network-isolation state cannot be consumed by older SDKs that would drop it * during container replacement. * - 1.20: Preserves resolved function identities on tool call items and adds sandbox * session-state envelope version 5 so Docker labels cannot be * consumed by older SDKs that would drop them during container replacement, preserves * exact current-response ownership for serialized approval resumes, and checkpoints * unacknowledged ordinary Session appends completed during approval resume, including * filtered handoff input held until its source append settles. * - 1.21: Re-evaluates conditional policies against refreshed normalized input * on approval resume. Normalized values and comparison evidence are never serialized. * Also preserves original local MCP recipients. Historical function calls without * recipient provenance may be rejected or retained as completed, but cannot execute. * Records completion of initial input guardrails. Started snapshots without this * evidence require a fresh run rather than resuming unvalidated input. * - 1.22: Records hosted MCP namespace discovery provenance. Older namespace-only * search outputs require rediscovery; explicit MCP descriptors remain usable. * - 1.23: Preserves nested numeric token usage breakdowns. * - 1.24: Preserves arbitrary JSON token usage metadata, child-owned approval slots, * and completion evidence for handoff failures returned to the source agent. * Adds sandbox session-state envelope version 6 so client-owned * unresolved environment references cannot be consumed by older SDKs that * would resolve them in the runner process. */ export declare const CURRENT_SCHEMA_VERSION: "1.24"; export declare const SUPPORTED_SCHEMA_VERSIONS: readonly ["1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9", "1.10", "1.11", "1.12", "1.13", "1.14", "1.15", "1.16", "1.17", "1.18", "1.19", "1.20", "1.21", "1.22", "1.23", "1.24"]; type ContextOverrideStrategy = 'merge' | 'replace'; declare const pendingSessionHistoryTransactionSchema: z.ZodObject<{ operationId: z.ZodString; transactionKind: z.ZodEnum<{ blocked_append: "blocked_append"; accepted_replace: "accepted_replace"; }>; runItemIndexes: z.ZodArray; replaceRunItemIndexes: z.ZodArray; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; deferredItemIndexes: z.ZodArray; }, z.core.$strict>; type PendingSessionHistoryTransaction = z.infer; declare const pendingSessionWriteSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ phase: z.ZodLiteral<"prepared">; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ phase: z.ZodLiteral<"append_ready">; beforeItems: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>; comparableAppendItems: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ phase: z.ZodLiteral<"compaction_pending">; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>], "phase">; export type PendingSessionWrite = z.infer; type PendingSessionWriteItemOwnership = Pick; export declare function getPendingSessionWriteAppendItems(state: RunState, pending: PendingSessionWriteItemOwnership): AgentInputItem[]; type PendingSessionWriteTerminalProducer = { behavior: ToolUseBehavior; resultCallIds: string[]; resultItems: RunToolCallOutputItem[]; selectedCallId?: string; finalOutput: string; }; export declare function recordPendingSessionWriteTerminalProducer(state: RunState, producer: PendingSessionWriteTerminalProducer | undefined): void; export declare function clearPendingSessionWriteTerminalProducer(state: RunState): void; type ToolInvocationCompletionEvidence = { fingerprint: string; items: [RunItem, RunItem]; }; declare const serializedSpanBase: z.ZodObject<{ object: z.ZodLiteral<"trace.span">; id: z.ZodString; trace_id: z.ZodString; parent_id: z.ZodNullable; started_at: z.ZodNullable; ended_at: z.ZodNullable; error: z.ZodNullable>; }, z.core.$strip>>; span_data: z.ZodRecord; }, z.core.$strip>; type SerializedSpanType = z.infer & { previous_span?: SerializedSpanType; }; type JsonCompatibleValue = null | boolean | number | string | JsonCompatibleValue[] | { [key: string]: JsonCompatibleValue; }; declare const sandboxStateSchema: z.ZodObject<{ backendId: z.ZodString; currentAgentKey: z.ZodString; currentAgentName: z.ZodString; sessionState: z.ZodObject<{ version: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>; backendId: z.ZodString; environmentPreparation: z.ZodOptional>; manifest: z.ZodRecord; snapshot: z.ZodOptional>>; snapshotFingerprint: z.ZodOptional>; snapshotFingerprintVersion: z.ZodOptional>; workspaceReady: z.ZodBoolean; exposedPorts: z.ZodOptional>; providerState: z.ZodRecord; }, z.core.$strip>; sessionsByAgent: z.ZodRecord, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>; backendId: z.ZodString; environmentPreparation: z.ZodOptional>; manifest: z.ZodRecord; snapshot: z.ZodOptional>>; snapshotFingerprint: z.ZodOptional>; snapshotFingerprintVersion: z.ZodOptional>; workspaceReady: z.ZodBoolean; exposedPorts: z.ZodOptional>; providerState: z.ZodRecord; }, z.core.$strip>; preservedOwnedSession: z.ZodOptional; reuseLiveSession: z.ZodOptional; requiresFreshCreation: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export declare const SerializedRunState: z.ZodObject<{ $schemaVersion: z.ZodEnum<{ "1.0": "1.0"; 1.1: "1.1"; 1.2: "1.2"; 1.3: "1.3"; 1.4: "1.4"; 1.5: "1.5"; 1.6: "1.6"; 1.7: "1.7"; 1.8: "1.8"; 1.9: "1.9"; "1.10": "1.10"; 1.11: "1.11"; 1.12: "1.12"; 1.13: "1.13"; 1.14: "1.14"; 1.15: "1.15"; 1.16: "1.16"; 1.17: "1.17"; 1.18: "1.18"; 1.19: "1.19"; "1.20": "1.20"; 1.21: "1.21"; 1.22: "1.22"; 1.23: "1.23"; 1.24: "1.24"; }>; currentTurn: z.ZodNumber; currentAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; originalInput: z.ZodUnion<[z.ZodString, z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; pendingInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>>; modelResponses: z.ZodArray, unknown, z.core.$ZodTypeInternals, unknown>>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; requestUsageEntries: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; endpoint: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; output: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>], "type">>; responseId: z.ZodOptional; requestId: z.ZodOptional; providerData: z.ZodOptional>; }, z.core.$strip>>; context: z.ZodObject<{ usage: z.ZodObject<{ requests: z.ZodNumber; inputTokens: z.ZodNumber; outputTokens: z.ZodNumber; totalTokens: z.ZodNumber; inputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; requestUsageEntries: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; endpoint: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; approvals: z.ZodRecord, z.ZodBoolean]>; rejected: z.ZodUnion<[z.ZodArray, z.ZodBoolean]>; messages: z.ZodOptional>; stickyRejectMessage: z.ZodOptional; }, z.core.$strip>>; hostedMcpApprovals: z.ZodOptional, z.ZodBoolean]>; rejected: z.ZodUnion<[z.ZodArray, z.ZodBoolean]>; messages: z.ZodOptional>; stickyRejectMessage: z.ZodOptional; }, z.core.$strip>>>; functionApprovals: z.ZodOptional, z.ZodBoolean]>; rejected: z.ZodUnion<[z.ZodArray, z.ZodBoolean]>; messages: z.ZodOptional>; stickyRejectMessage: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; legacyFunctionApprovals: z.ZodOptional, z.ZodBoolean]>; rejected: z.ZodUnion<[z.ZodArray, z.ZodBoolean]>; messages: z.ZodOptional>; stickyRejectMessage: z.ZodOptional; }, z.core.$strip>>>; approvalInvocations: z.ZodOptional; approvals: z.ZodRecord, z.ZodBoolean]>; rejected: z.ZodUnion<[z.ZodArray, z.ZodBoolean]>; messages: z.ZodOptional>; stickyRejectMessage: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; context: z.ZodRecord; toolInput: z.ZodOptional; }, z.core.$strip>; toolUseTracker: z.ZodRecord>; maxTurns: z.ZodNullable; currentAgentSpan: z.ZodOptional>>>; noActiveAgentRun: z.ZodBoolean; inputGuardrailResults: z.ZodArray; name: z.ZodString; }, z.core.$strip>; output: z.ZodObject<{ tripwireTriggered: z.ZodBoolean; outputInfo: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; initialInputGuardrailsCompleted: z.ZodOptional; outputGuardrailResults: z.ZodArray; name: z.ZodString; }, z.core.$strip>; agentOutput: z.ZodAny; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodObject<{ tripwireTriggered: z.ZodBoolean; outputInfo: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>>; toolInputGuardrailResults: z.ZodDefault; }, z.core.$strip>; output: z.ZodObject<{ outputInfo: z.ZodOptional; behavior: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"allow">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rejectContent">; message: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"throwException">; }, z.core.$strip>], "type">; }, z.core.$strip>; }, z.core.$strip>>>>; toolOutputGuardrailResults: z.ZodDefault; }, z.core.$strip>; output: z.ZodObject<{ outputInfo: z.ZodOptional; behavior: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"allow">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rejectContent">; message: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"throwException">; }, z.core.$strip>], "type">; }, z.core.$strip>; }, z.core.$strip>>>>; currentTurnInProgress: z.ZodOptional; currentStep: z.ZodOptional; newAgent: z.ZodAny; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"next_step_final_output">; output: z.ZodString; responseAccepted: z.ZodOptional>; localFinalizationStarted: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"next_step_run_again">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"next_step_interruption">; data: z.ZodRecord; }, z.core.$strip>], "type">>; lastModelResponse: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>>; requestUsageEntries: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; outputTokensDetails: z.ZodOptional, unknown, z.core.$ZodTypeInternals, unknown>>>; endpoint: z.ZodOptional; }, z.core.$strip>>>; }, z.core.$strip>; output: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>], "type">>; responseId: z.ZodOptional; requestId: z.ZodOptional; providerData: z.ZodOptional>; }, z.core.$strip>>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; currentResponseGeneratedItemOwnership: z.ZodOptional>; toolOutputGuardrailResultStartIndex: z.ZodNumber; }, z.core.$strict>>; pendingAgentToolRuns: z.ZodDefault>>; pendingAgentToolRunAliases: z.ZodDefault>>; lastProcessedResponse: z.ZodOptional; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; toolsUsed: z.ZodArray; handoffs: z.ZodArray; }, z.core.$strip>>; }, z.core.$strip>>; functions: z.ZodArray; }, z.core.$strip>, z.ZodNull, z.ZodLiteral<"unknown">]>>; }, z.core.$strip>>; functionToolsNotFound: z.ZodOptional>; }, z.core.$strip>>>; computerActions: z.ZodArray>; shellActions: z.ZodOptional>>; applyPatchActions: z.ZodOptional>>; mcpApprovalRequests: z.ZodOptional; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; providerData: z.ZodOptional>>; }, z.core.$strip>; }, z.core.$strip>; mcpTool: z.ZodObject<{ type: z.ZodLiteral<"hosted_tool">; name: z.ZodLiteral<"hosted_mcp">; providerData: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>>>; }, z.core.$strip>>; currentTurnPersistedItemCount: z.ZodOptional; currentTurnSessionWriteCompactedItemCount: z.ZodOptional; currentTurnDeferredSessionItemIndexes: z.ZodOptional>; currentTurnBlockedSessionStartIndex: z.ZodOptional; currentTurnExecutedWithSessionBinding: z.ZodOptional>; currentTurnSessionInputItems: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>>; pendingSessionHistoryTransaction: z.ZodOptional; runItemIndexes: z.ZodArray; replaceRunItemIndexes: z.ZodArray; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; deferredItemIndexes: z.ZodArray; }, z.core.$strict>>; pendingSessionWrite: z.ZodOptional; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ phase: z.ZodLiteral<"append_ready">; beforeItems: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>; comparableAppendItems: z.ZodArray>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ phase: z.ZodLiteral<"compaction_pending">; sessionId: z.ZodString; alreadyPersistedCount: z.ZodNumber; persistedItemCount: z.ZodNumber; reasoningItemIdPolicy: z.ZodEnum<{ omit: "omit"; preserve: "preserve"; }>; handoffInput: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>]>; generatedItems: z.ZodArray; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">>; }, z.core.$strip>>>; terminalToolFinalization: z.ZodOptional; selectedCallId: z.ZodOptional; selectedGeneratedItemIndex: z.ZodOptional; finalOutput: z.ZodString; }, z.core.$strict>>; }, z.core.$strict>], "phase">>; completedToolInvocations: z.ZodOptional; }, z.core.$strip>>>; completedToolInvocationEvidence: z.ZodOptional, z.ZodObject<{ item: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"input_item">; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">; }, z.core.$strict>]>, z.ZodUnion, z.ZodObject<{ item: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"input_item">; rawItem: z.ZodUnion>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; inputId: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"message_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_search_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_item">; rawItem: z.ZodUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>], "type">, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; functionToolStateKey: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_call_output_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; output: z.ZodPreprocess, unknown>; customData: z.ZodOptional>; executionStatus: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"reasoning_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"compaction_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_call_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"handoff_output_item">; rawItem: z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>; sourceAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; targetAgent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"tool_approval_item">; rawItem: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>]>; agent: z.ZodObject<{ name: z.ZodString; identity: z.ZodOptional; }, z.core.$strip>; toolName: z.ZodOptional; functionToolStateKey: z.ZodOptional; }, z.core.$strip>], "type">; }, z.core.$strict>]>], null>; }, z.core.$strict>>; }, z.core.$strip>>>; ambiguousToolInvocationCallIds: z.ZodOptional; }, z.core.$strip>>>; pendingLegacyCompactionSessionItems: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"user">; content: z.ZodUnion<[z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>, z.ZodString]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"assistant">; phase: z.ZodOptional>; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; content: z.ZodArray>; type: z.ZodLiteral<"output_text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"refusal">; refusal: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"audio">; audio: z.ZodUnion<[z.ZodString, z.ZodObject<{ id: z.ZodString; }, z.core.$strip>]>; format: z.ZodOptional>; transcript: z.ZodOptional>; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodOptional>; role: z.ZodLiteral<"system">; content: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"tool_search_call">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; arguments: z.ZodUnknown; status: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; toolSearchAgentName: z.ZodOptional; toolSearchMcpToolNames: z.ZodOptional>; type: z.ZodLiteral<"tool_search_output">; call_id: z.ZodOptional>; callId: z.ZodOptional>; execution: z.ZodOptional>; status: z.ZodOptional; tools: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"hosted_tool_call">; name: z.ZodString; arguments: z.ZodOptional; status: z.ZodOptional; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program">; callId: z.ZodString; code: z.ZodString; fingerprint: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"program_output">; callId: z.ZodString; output: z.ZodString; status: z.ZodEnum<{ completed: "completed"; incomplete: "incomplete"; }>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call">; callId: z.ZodString; name: z.ZodString; namespace: z.ZodOptional; status: z.ZodOptional>; arguments: z.ZodString; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; action: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>; actions: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"click">; x: z.ZodNumber; y: z.ZodNumber; button: z.ZodEnum<{ left: "left"; right: "right"; wheel: "wheel"; back: "back"; forward: "forward"; }>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"double_click">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"scroll">; x: z.ZodNumber; y: z.ZodNumber; scroll_x: z.ZodNumber; scroll_y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"wait">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"move">; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"keypress">; keys: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"drag">; path: z.ZodArray>; }, z.core.$strip>], "type">>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call">; callId: z.ZodString; status: z.ZodOptional>; action: z.ZodObject<{ commands: z.ZodArray; timeoutMs: z.ZodOptional; maxOutputLength: z.ZodOptional; }, z.core.$strip>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call">; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; }>; operation: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"create_file">; path: z.ZodString; diff: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"update_file">; path: z.ZodString; diff: z.ZodString; moveTo: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"delete_file">; path: z.ZodString; }, z.core.$strip>], "type">; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"function_call_result">; name: z.ZodString; namespace: z.ZodOptional; callId: z.ZodString; status: z.ZodEnum<{ in_progress: "in_progress"; completed: "completed"; incomplete: "incomplete"; }>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; output: z.ZodUnion>; type: z.ZodLiteral<"text">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"image">; image: z.ZodOptional>]>; mediaType: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>, z.ZodObject<{ fileId: z.ZodString; }, z.core.$strip>]>]>>; detail: z.ZodOptional>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"file">; file: z.ZodUnion>]>; mediaType: z.ZodString; filename: z.ZodString; }, z.core.$strip>, z.ZodObject<{ url: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ id: z.ZodString; filename: z.ZodOptional; }, z.core.$strip>]>; }, z.core.$strip>], "type">, z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_image">; image: z.ZodOptional]>>; detail: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"input_file">; file: z.ZodOptional]>, z.ZodObject<{ url: z.ZodString; }, z.core.$strip>]>>; filename: z.ZodOptional; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>], "type">>]>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"computer_call_result">; callId: z.ZodString; output: z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"computer_screenshot">; data: z.ZodString; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"shell_call_output">; callId: z.ZodString; status: z.ZodOptional>; maxOutputLength: z.ZodOptional; output: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"exit">; exitCode: z.ZodNullable; }, z.core.$strip>], "type">; }, z.core.$loose>>; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"apply_patch_call_output">; callId: z.ZodString; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; }>; output: z.ZodOptional; caller: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"program">; callerId: z.ZodString; }, z.core.$strip>], "type">>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"reasoning">; content: z.ZodArray>; type: z.ZodLiteral<"input_text">; text: z.ZodString; promptCacheBreakpoint: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; rawContent: z.ZodOptional>; type: z.ZodLiteral<"reasoning_text">; text: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; type: z.ZodLiteral<"compaction">; encrypted_content: z.ZodString; id: z.ZodOptional; created_by: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ providerData: z.ZodOptional>; id: z.ZodOptional; type: z.ZodLiteral<"unknown">; }, z.core.$strip>]>>>; conversationId: z.ZodOptional; previousResponseId: z.ZodOptional; reasoningItemIdPolicy: z.ZodOptional>; trace: z.ZodNullable; id: z.ZodString; workflow_name: z.ZodString; group_id: z.ZodNullable; metadata: z.ZodRecord; tracing_api_key: z.ZodNullable>; }, z.core.$strip>>; sandbox: z.ZodOptional, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>; backendId: z.ZodString; environmentPreparation: z.ZodOptional>; manifest: z.ZodRecord; snapshot: z.ZodOptional>>; snapshotFingerprint: z.ZodOptional>; snapshotFingerprintVersion: z.ZodOptional>; workspaceReady: z.ZodBoolean; exposedPorts: z.ZodOptional>; providerState: z.ZodRecord; }, z.core.$strip>; sessionsByAgent: z.ZodRecord, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>]>; backendId: z.ZodString; environmentPreparation: z.ZodOptional>; manifest: z.ZodRecord; snapshot: z.ZodOptional>>; snapshotFingerprint: z.ZodOptional>; snapshotFingerprintVersion: z.ZodOptional>; workspaceReady: z.ZodBoolean; exposedPorts: z.ZodOptional>; providerState: z.ZodRecord; }, z.core.$strip>; preservedOwnedSession: z.ZodOptional; reuseLiveSession: z.ZodOptional; requiresFreshCreation: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type FinalOutputSource = 'error_handler' | 'turn_resolution' | 'tool_result'; type ToolSearchRuntimeToolEntry = { order: number; tools: Tool[]; }; type ToolSearchRuntimeToolState = { keyedEntries: Map>; routedOwners: Map; tool: Tool; toolIndex: number; }>; nextOrder: number; }; /** * Serializable snapshot of an agent's run, including context, usage and trace. * While this class has publicly writable properties (prefixed with `_`), they are not meant to be * used directly. To read these properties, use the `RunResult` instead. * * Manipulation of the state directly can lead to unexpected behavior and should be avoided. * Instead, use the `approve` and `reject` methods to interact with the state. */ export declare class RunState> { #private; /** * Current turn number in the conversation. */ _currentTurn: number; /** * Whether the current turn has already been counted (useful when resuming mid-turn). */ _currentTurnInProgress: boolean; /** Whether the complete initial input guardrail batch passed, including an empty batch. */ _initialInputGuardrailsCompleted: boolean; /** * The agent currently handling the conversation. */ _currentAgent: TAgent; /** * Original user input prior to any processing. */ _originalInput: string | AgentInputItem[]; /** * Input staged for admission immediately before the next resumed model call. */ _pendingInput: AgentInputItem[]; /** * Responses from the model so far. */ _modelResponses: ModelResponse[]; /** * Conversation identifier when the server manages conversation history. */ _conversationId: string | undefined; /** * Latest response identifier returned by the server for server-managed conversations. */ _previousResponseId: string | undefined; /** * Runtime options that control how run items are converted into model turn input. * This value is serialized so resumed runs keep the same turn-input behavior. */ _reasoningItemIdPolicy: ReasoningItemIdPolicy | undefined; /** * Effective model settings used for the most recent model call. */ _lastModelSettings: ModelSettings | undefined; /** * Active tracing span for the current agent if tracing is enabled. */ _currentAgentSpan: Span | undefined; /** * Run context tracking approvals, usage, and other metadata. */ _context: RunContext; /** * Runtime-only metadata for the current nested agent-tool invocation. */ _agentToolInvocation: AgentToolInvocation | undefined; /** * The usage aggregated for this run. This includes per-request breakdowns when available. */ get usage(): Usage; /** * Tracks what tools each agent has used. */ _toolUseTracker: AgentToolUseTracker; /** * Serialized pending nested agent runs keyed by tool name and call id. */ _pendingAgentToolRuns: Map; /** * Legacy pending-run keys mapped to their canonical category-aware keys. */ _pendingAgentToolRunAliases: Map; /** * Canonical invocation fingerprints whose local tool outputs are committed to run history. */ _completedToolInvocations: Map, Map>; /** * Completed invocations whose supporting run items were removed by a * supported history replacement. */ _completedToolInvocationEvidence: Map, Map>; /** * Canonical invocations observed in the active run before their outputs are committed. */ _observedToolInvocations: Map, Map>; /** * Legacy call IDs whose serialized history cannot identify one canonical invocation. */ _ambiguousToolInvocationCallIds: Map, Set>; /** * Items generated by the agent during the run. */ _generatedItems: RunItem[]; /** * Number of `_generatedItems` already flushed to session storage for the current turn. * * Persisting the entire turn on every save would duplicate responses and tool outputs. * Instead, `saveToSession` appends only the delta since the previous write. This counter * tracks how many generated run items from *this turn* were already written so the next * save can slice off only the new entries. When a turn is interrupted (e.g., awaiting tool * approval) and later resumed, we rewind the counter before continuing so the pending tool * output still gets stored. */ _currentTurnPersistedItemCount: number; /** * Persisted-item count whose resumed-write recovery input compaction has settled. */ _currentTurnSessionWriteCompactedItemCount: number | undefined; /** * Current-turn item indexes intentionally deferred when a blocked output persisted only a * replay-safe subset. A later accepted resume replaces the sparse suffix in original order. */ _currentTurnDeferredSessionItemIndexes: Set; /** * First current-turn index governed by the sparse blocked-output session suffix. */ _currentTurnBlockedSessionStartIndex: number | undefined; /** * Logical session bound to the current turn before a transaction-aware tool effect can occur. */ _currentTurnSessionHistoryTransactionSessionId: string | undefined; /** * Effective reasoning-item ID policy frozen for the current transaction-aware session turn. */ _currentTurnSessionReasoningItemIdPolicy: ReasoningItemIdPolicy | undefined; /** * Normalized session input frozen before the current transaction-aware model request. */ _currentTurnSessionHistoryTransactionInputItems: AgentInputItem[] | undefined; /** * Whether the current live batch may later replace its sparse suffix with accepted output. */ _currentTurnSessionHistoryTransactionCanReplaceAcceptedOutput: boolean | undefined; /** * Current step reconstructed from serialized state. This reference is not serialized and is * cleared implicitly when the live runner installs another step. */ _serializedCurrentStep: NextStep | undefined; /** * Stable per-run identifier used to derive idempotent session history transaction IDs. */ _sessionHistoryTransactionId: string; /** * Transaction reconstruction data awaiting confirmation from the session backend. Its * generated-item indexes, operation identity, and post-commit bookkeeping remain stable across * retries on the same live RunState; input stays in the separately frozen current-turn snapshot. */ _pendingSessionHistoryTransaction: PendingSessionHistoryTransaction | undefined; /** * Ordinary Session append whose outcome must be reconciled before another resumed model call. */ _pendingSessionWrite: PendingSessionWrite | undefined; /** * Prevents two live resume attempts from executing or reconciling the same resumed Session * append concurrently. */ _resumedSessionWriteInProgress: boolean; /** * Compaction marker and persisted suffix that an ordinary session must reconcile once after a * pre-1.16 snapshot is restored. The field remains serialized until reconciliation succeeds. */ _pendingLegacyCompactionSessionItems: AgentInputItem[] | undefined; /** * Maximum allowed turns before forcing termination. */ _maxTurns: number | null; /** * Whether the run has an active agent step in progress. */ _noActiveAgentRun: boolean; /** * Last model response for the previous turn. */ _lastTurnResponse: ModelResponse | undefined; /** * Results from input guardrails applied to the run. */ _inputGuardrailResults: InputGuardrailResult[]; /** * Results from output guardrails applied to the run. */ _outputGuardrailResults: OutputGuardrailResult[]; /** * Results from tool input guardrails applied during tool execution. */ _toolInputGuardrailResults: ToolInputGuardrailResult[]; /** * Results from tool output guardrails applied during tool execution. */ _toolOutputGuardrailResults: ToolOutputGuardrailResult[]; /** * Next step computed for the agent to take. */ _currentStep: NextStep | undefined; /** * Indicates how the final output was produced for the current run. * This value is not serialized. */ _finalOutputSource: FinalOutputSource | undefined; /** * Parsed model response after applying guardrails and tools. */ _lastProcessedResponse: ProcessedResponse | undefined; /** * Trace associated with this run if tracing is enabled. */ _trace: Trace | null; /** * Runtime-only tool_search-loaded tools, scoped by agent object and preserved across turns for * the lifetime of this in-memory run. */ _toolSearchRuntimeToolsByAgent: Map, ToolSearchRuntimeToolState>; /** * Persisted sandbox session metadata for sandbox-agent resume. */ _sandbox: z.infer | undefined; constructor(context: RunContext, originalInput: string | AgentInputItem[], startingAgent: TAgent, maxTurns: number | null); /** * Updates server-managed conversation identifiers as a single operation. */ setConversationContext(conversationId?: string, previousResponseId?: string): void; /** * Updates runtime options for converting run items into turn input. */ setReasoningItemIdPolicy(policy?: ReasoningItemIdPolicy): void; /** * Updates the agent span associated with the current run. */ setCurrentAgentSpan(span?: Span): void; /** * Clears the restored trace and current agent span from this run state. * * Use this before resuming a serialized state when the resumed run should attach * to the current ambient trace instead of the trace persisted in the state. */ clearTrace(): void; private getOrCreateToolSearchRuntimeToolState; recordToolSearchRuntimeTools(agent: Agent, toolSearchOutput: protocol.ToolSearchOutputItem, tools: Tool[]): void; getToolSearchRuntimeToolsForOutput(agent: Agent, toolSearchOutput: protocol.ToolSearchOutputItem): Tool[]; getToolSearchRuntimeTools(agent: Agent): Tool[]; /** * Switches the active agent handling the run. */ setCurrentAgent(agent: TAgent): void; /** * Returns the agent currently handling the run. */ get currentAgent(): TAgent; /** * Resets the counter that tracks how many items were persisted for the current turn. */ resetTurnPersistence(): void; /** * Rewinds the persisted item counter when pending approvals require re-writing outputs. */ rewindTurnPersistence(count: number): void; /** * The history of the agent run. This includes the input items and the new items generated during the run. * * This can be used as inputs for the next agent run. */ get history(): AgentInputItem[]; /** * Returns a copy of input staged for the next resumed model call. */ get pendingInput(): AgentInputItem[]; /** * Stages input for admission immediately before the next resumed model call. */ addInput(input: string | AgentInputItem[]): void; /** * Removes all input staged for the next resumed model call. */ clearPendingInput(): void; /** * Returns all interruptions if the current step is an interruption otherwise returns an empty array. */ getInterruptions(): RunToolApprovalItem[]; private getPendingAgentToolRunKey; private resolvePendingAgentToolRunKey; getPendingAgentToolRun(toolName: string, callId: string): string | undefined; hasPendingAgentToolRun(toolName: string, callId: string): boolean; setPendingAgentToolRun(toolName: string, callId: string, serializedState: string, aliases?: readonly string[]): void; clearPendingAgentToolRun(toolName: string, callId: string): void; /** * Approves a tool call requested by the agent through an interruption and approval item request. * * To approve the request use this method and then run the agent again with the same state object * to continue the execution. * * By default it will only approve the current tool call. To allow the tool to be used multiple * times throughout the run, set the `alwaysApprove` option to `true`. * * @param approvalItem - The tool call approval item to approve. * @param options - Options for the approval. * @param options.alwaysApprove - Approve this tool for all future calls in this run. */ approve(approvalItem: RunToolApprovalItem, options?: { alwaysApprove?: boolean; }): void; /** * Rejects a tool call requested by the agent through an interruption and approval item request. * * To reject the request use this method and then run the agent again with the same state object * to continue the execution. * * By default it will only reject the current tool call. To reject the tool for all future * calls throughout the run, set the `alwaysReject` option to `true`. * * When `message` is provided, it is used as the rejection text sent to the model. * Otherwise, `toolErrorFormatter` (if configured) or the SDK default is used. * * @param approvalItem - The tool call approval item to reject. * @param options - Options for the rejection. * @param options.alwaysReject - Reject this tool for all future calls in this run. * @param options.message - The rejection text sent to the model. * If not provided, `toolErrorFormatter` (if configured) or the SDK default is used. */ reject(approvalItem: RunToolApprovalItem, options?: { alwaysReject?: boolean; message?: string; }): void; /** * Serializes the run state to a JSON object. * * This method is used to serialize the run state to a JSON object that can be used to * resume the run later. * * @returns The serialized run state. */ /** * Serializes the run state. By default, tracing API keys are omitted to prevent * accidental persistence of secrets. Pass `includeTracingApiKey: true` only when you * intentionally need to migrate a run along with its tracing credentials (e.g., to * rehydrate in a separate process that lacks the original environment variables). */ toJSON(options?: { includeTracingApiKey?: boolean; }): z.infer; /** * Serializes the run state to a string. * * This method is used to serialize the run state to a string that can be used to * resume the run later. * * @returns The serialized run state. */ toString(options?: { includeTracingApiKey?: boolean; }): string; /** * Deserializes a run state from a string. * * This method is used to deserialize a run state from a string that was serialized using the * `toString` method. * Pending function calls from snapshots without recipient provenance cannot execute; * start a new run instead. Rejected and completed calls remain non-executing. * MCP calls require the original server names, list positions, and raw tool names. * These bindings detect routing changes, not snapshot tampering or changed transport * settings or credentials under the same identity. */ static fromString>(initialAgent: TAgent, str: string): Promise>; static fromStringWithContext>(initialAgent: TAgent, str: string, context: RunContext, options?: { contextStrategy?: ContextOverrideStrategy; }): Promise>; } export declare function assertPendingSessionWriteOwnership(state: RunState, pending: PendingSessionWrite, options?: { allowUnhydratedTerminalToolStep?: boolean; }): void; export declare function capturePendingSessionWriteTerminalFinalization(state: RunState): PendingSessionWrite['terminalToolFinalization'];