StreamEvent
このコンテンツはまだ日本語訳がありません。
type StreamEvent = ZodDiscriminatedUnion<"type", [ZodObject<object & object, "strip", ZodTypeAny, { delta: string; providerData?: Record<string, any>; type: "output_text_delta";}, { delta: string; providerData?: Record<string, any>; type: "output_text_delta";}>, ZodObject<object & object, "strip", ZodTypeAny, { providerData?: Record<string, any>; response: { id: string; output: ( | { content: ( | { providerData?: ...; refusal: ...; type: ...; } | { providerData?: ...; text: ...; type: ...; } | { audio: ...; format?: ...; providerData?: ...; transcript?: ...; type: ...; } | { image: ...; providerData?: ...; type: ...; })[]; id?: string; providerData?: Record<string, any>; role: "assistant"; status: "completed" | "in_progress" | "incomplete"; type?: "message"; } | { arguments?: string; id?: string; name: string; output?: string; providerData?: Record<string, any>; status?: string; type: "hosted_tool_call"; } | { arguments: string; callId: string; id?: string; name: string; providerData?: Record<string, any>; status?: "completed" | "in_progress" | "incomplete"; type: "function_call"; } | { callId: string; id?: string; name: string; output: | string | { providerData?: ... | ...; text: string; type: "text"; } | { detail?: ... | ... | ... | ... | ...; image?: ... | ... | ... | ... | ...; providerData?: ... | ...; type: "image"; } | { file: ... | ... | ... | ...; providerData?: ... | ...; type: "file"; } | (... | ... | ...)[]; providerData?: Record<string, any>; status: "completed" | "in_progress" | "incomplete"; type: "function_call_result"; } | { action: | { type: "screenshot"; } | { button: ... | ... | ... | ... | ...; type: "click"; x: number; y: number; } | { type: "double_click"; x: number; y: number; } | { scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | { type: "move"; x: number; y: number; } | { keys: ...[]; type: "keypress"; } | { path: ...[]; type: "drag"; }; callId: string; id?: string; providerData?: Record<string, any>; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { action: { commands: string[]; maxOutputLength?: number; timeoutMs?: number; }; callId: string; id?: string; providerData?: Record<string, any>; status?: "completed" | "in_progress" | "incomplete"; type: "shell_call"; } | { callId: string; id?: string; maxOutputLength?: number; output: objectOutputType<{ outcome: ...; stderr: ...; stdout: ...; }, ZodTypeAny, "passthrough">[]; providerData?: Record<string, any>; type: "shell_call_output"; } | { callId: string; id?: string; operation: | { diff: string; path: string; type: "create_file"; } | { diff: string; path: string; type: "update_file"; } | { path: string; type: "delete_file"; }; providerData?: Record<string, any>; status: "completed" | "in_progress"; type: "apply_patch_call"; } | { callId: string; id?: string; output?: string; providerData?: Record<string, any>; status: "completed" | "failed"; type: "apply_patch_call_output"; } | { content: object[]; id?: string; providerData?: Record<string, any>; rawContent?: object[]; type: "reasoning"; } | { id?: string; providerData?: Record<string, any>; type: "unknown"; })[]; providerData?: Record<string, any>; usage: { inputTokens: number; inputTokensDetails?: Record<string, number> | Record<string, number>[]; outputTokens: number; outputTokensDetails?: Record<string, number> | Record<string, number>[]; requests?: number; requestUsageEntries?: object[]; totalTokens: number; }; }; type: "response_done";}, { providerData?: Record<string, any>; response: { id: string; output: ( | { content: ( | { providerData?: ...; refusal: ...; type: ...; } | { providerData?: ...; text: ...; type: ...; } | { audio: ...; format?: ...; providerData?: ...; transcript?: ...; type: ...; } | { image: ...; providerData?: ...; type: ...; })[]; id?: string; providerData?: Record<string, any>; role: "assistant"; status: "completed" | "in_progress" | "incomplete"; type?: "message"; } | { arguments?: string; id?: string; name: string; output?: string; providerData?: Record<string, any>; status?: string; type: "hosted_tool_call"; } | { arguments: string; callId: string; id?: string; name: string; providerData?: Record<string, any>; status?: "completed" | "in_progress" | "incomplete"; type: "function_call"; } | { callId: string; id?: string; name: string; output: | string | { providerData?: ... | ...; text: string; type: "text"; } | { detail?: ... | ... | ... | ... | ...; image?: ... | ... | ... | ... | ...; providerData?: ... | ...; type: "image"; } | { file: ... | ... | ... | ...; providerData?: ... | ...; type: "file"; } | (... | ... | ...)[]; providerData?: Record<string, any>; status: "completed" | "in_progress" | "incomplete"; type: "function_call_result"; } | { action: | { type: "screenshot"; } | { button: ... | ... | ... | ... | ...; type: "click"; x: number; y: number; } | { type: "double_click"; x: number; y: number; } | { scroll_x: number; scroll_y: number; type: "scroll"; x: number; y: number; } | { text: string; type: "type"; } | { type: "wait"; } | { type: "move"; x: number; y: number; } | { keys: ...[]; type: "keypress"; } | { path: ...[]; type: "drag"; }; callId: string; id?: string; providerData?: Record<string, any>; status: "completed" | "in_progress" | "incomplete"; type: "computer_call"; } | { action: { commands: string[]; maxOutputLength?: number; timeoutMs?: number; }; callId: string; id?: string; providerData?: Record<string, any>; status?: "completed" | "in_progress" | "incomplete"; type: "shell_call"; } | { callId: string; id?: string; maxOutputLength?: number; output: objectInputType<{ outcome: ...; stderr: ...; stdout: ...; }, ZodTypeAny, "passthrough">[]; providerData?: Record<string, any>; type: "shell_call_output"; } | { callId: string; id?: string; operation: | { diff: string; path: string; type: "create_file"; } | { diff: string; path: string; type: "update_file"; } | { path: string; type: "delete_file"; }; providerData?: Record<string, any>; status: "completed" | "in_progress"; type: "apply_patch_call"; } | { callId: string; id?: string; output?: string; providerData?: Record<string, any>; status: "completed" | "failed"; type: "apply_patch_call_output"; } | { content: object[]; id?: string; providerData?: Record<string, any>; rawContent?: object[]; type: "reasoning"; } | { id?: string; providerData?: Record<string, any>; type: "unknown"; })[]; providerData?: Record<string, any>; usage: { inputTokens: number; inputTokensDetails?: Record<string, number> | Record<string, number>[]; outputTokens: number; outputTokensDetails?: Record<string, number> | Record<string, number>[]; requests?: number; requestUsageEntries?: object[]; totalTokens: number; }; }; type: "response_done";}>, ZodObject<object & object, "strip", ZodTypeAny, { providerData?: Record<string, any>; type: "response_started";}, { providerData?: Record<string, any>; type: "response_started";}>, ZodObject<object & object, "strip", ZodTypeAny, { event?: any; providerData?: Record<string, any>; type: "model";}, { event?: any; providerData?: Record<string, any>; type: "model";}>]>;