/** * Agent views and data structures for browser-use TypeScript * * This module contains TypeScript equivalents of the Python agent views, * using Zod schemas for validation and TypeScript types for safety. */ import { z } from 'zod'; import { BaseMessage } from '../llm/messages'; export declare const AgentSettingsSchema: z.ZodObject<{ use_vision: z.ZodDefault; vision_detail_level: z.ZodDefault>; use_vision_for_planner: z.ZodDefault; save_conversation_path: z.ZodDefault>; save_conversation_path_encoding: z.ZodDefault>; max_failures: z.ZodDefault; retry_delay: z.ZodDefault; validate_output: z.ZodDefault; generate_gif: z.ZodDefault>; override_system_message: z.ZodOptional; extend_system_message: z.ZodOptional; include_attributes: z.ZodDefault>>; max_actions_per_step: z.ZodDefault; use_thinking: z.ZodDefault; flash_mode: z.ZodDefault; fast_mode_v2: z.ZodDefault; include_recent_events: z.ZodDefault; max_history_items: z.ZodDefault>; page_extraction_llm: z.ZodDefault>; planner_llm: z.ZodDefault>; planner_interval: z.ZodDefault; is_planner_reasoning: z.ZodDefault; extend_planner_system_message: z.ZodDefault>; calculate_cost: z.ZodDefault; include_tool_call_examples: z.ZodDefault; llm_timeout: z.ZodDefault; step_timeout: z.ZodDefault; }, "strip", z.ZodTypeAny, { use_vision: boolean; vision_detail_level: "auto" | "low" | "high"; use_vision_for_planner: boolean; save_conversation_path: string | null; save_conversation_path_encoding: string | null; max_failures: number; retry_delay: number; validate_output: boolean; generate_gif: string | boolean; include_attributes: string[] | null; max_actions_per_step: number; use_thinking: boolean; flash_mode: boolean; fast_mode_v2: boolean; include_recent_events: boolean; max_history_items: number | null; planner_interval: number; is_planner_reasoning: boolean; extend_planner_system_message: string | null; calculate_cost: boolean; include_tool_call_examples: boolean; llm_timeout: number; step_timeout: number; override_system_message?: string | undefined; extend_system_message?: string | undefined; page_extraction_llm?: any; planner_llm?: any; }, { use_vision?: boolean | undefined; vision_detail_level?: "auto" | "low" | "high" | undefined; use_vision_for_planner?: boolean | undefined; save_conversation_path?: string | null | undefined; save_conversation_path_encoding?: string | null | undefined; max_failures?: number | undefined; retry_delay?: number | undefined; validate_output?: boolean | undefined; generate_gif?: string | boolean | undefined; override_system_message?: string | undefined; extend_system_message?: string | undefined; include_attributes?: string[] | null | undefined; max_actions_per_step?: number | undefined; use_thinking?: boolean | undefined; flash_mode?: boolean | undefined; fast_mode_v2?: boolean | undefined; include_recent_events?: boolean | undefined; max_history_items?: number | null | undefined; page_extraction_llm?: any; planner_llm?: any; planner_interval?: number | undefined; is_planner_reasoning?: boolean | undefined; extend_planner_system_message?: string | null | undefined; calculate_cost?: boolean | undefined; include_tool_call_examples?: boolean | undefined; llm_timeout?: number | undefined; step_timeout?: number | undefined; }>; export type AgentSettings = z.infer; export declare const HistoryItemSchema: z.ZodEffects>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action_results: z.ZodDefault>; error: z.ZodDefault>; system_message: z.ZodDefault>; }, "strip", z.ZodTypeAny, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>; export type HistoryItem = z.infer; export declare const MessageHistorySchema: z.ZodObject<{ system_message: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; state_message: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; context_messages: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }, { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; }>; export type MessageHistory = z.infer; export declare const MessageManagerStateSchema: z.ZodObject<{ history: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; state_message: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; context_messages: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }, { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; }>>; tool_id: z.ZodDefault; agent_history_items: z.ZodDefault>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action_results: z.ZodDefault>; error: z.ZodDefault>; system_message: z.ZodDefault>; }, "strip", z.ZodTypeAny, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>, "many">>; read_state_description: z.ZodDefault; }, "strip", z.ZodTypeAny, { history: { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }; tool_id: number; agent_history_items: { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }[]; read_state_description: string; }, { history?: { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; } | undefined; tool_id?: number | undefined; agent_history_items?: { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }[] | undefined; read_state_description?: string | undefined; }>; export type MessageManagerState = z.infer; export declare const ActionModelSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>; export type ActionModel = z.infer; export declare const AgentStateSchema: z.ZodObject<{ agent_id: z.ZodDefault; n_steps: z.ZodDefault; consecutive_failures: z.ZodDefault; last_result: z.ZodDefault>>; last_plan: z.ZodDefault>; last_model_output: z.ZodDefault>; paused: z.ZodDefault; stopped: z.ZodDefault; session_initialized: z.ZodDefault; message_manager_state: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; state_message: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>>>; context_messages: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ image_url: z.ZodObject<{ url: z.ZodString; detail: z.ZodDefault>; media_type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }, { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }>; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; }, { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; }>]>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, "many">]>; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; }, { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; }>, z.ZodObject<{ cache: z.ZodDefault; } & { role: z.ZodDefault>; content: z.ZodUnion<[z.ZodString, z.ZodArray>; }, "strip", z.ZodTypeAny, { text: string; type: "text"; }, { text: string; type?: "text" | undefined; }>, z.ZodObject<{ refusal: z.ZodString; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { type: "refusal"; refusal: string; }, { refusal: string; type?: "refusal" | undefined; }>]>, "many">, z.ZodNull]>; name: z.ZodOptional; refusal: z.ZodOptional; tool_calls: z.ZodDefault; type: z.ZodDefault>; }, "strip", z.ZodTypeAny, { function: { arguments: string; name: string; }; type: "function"; id: string; }, { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; }, { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; }>]>, "many">>; }, "strip", z.ZodTypeAny, { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }, { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; }>>; tool_id: z.ZodDefault; agent_history_items: z.ZodDefault>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action_results: z.ZodDefault>; error: z.ZodDefault>; system_message: z.ZodDefault>; }, "strip", z.ZodTypeAny, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>, { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }, { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }>, "many">>; read_state_description: z.ZodDefault; }, "strip", z.ZodTypeAny, { history: { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }; tool_id: number; agent_history_items: { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }[]; read_state_description: string; }, { history?: { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; } | undefined; tool_id?: number | undefined; agent_history_items?: { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }[] | undefined; read_state_description?: string | undefined; }>>; file_system_state: z.ZodDefault>; }, "strip", z.ZodTypeAny, { agent_id: string; n_steps: number; consecutive_failures: number; last_result: any[] | null; last_plan: string | null; paused: boolean; stopped: boolean; session_initialized: boolean; message_manager_state: { history: { system_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; state_message: { role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; } | null; context_messages: ({ role: "user"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "image_url"; image_url: { url: string; detail: "auto" | "low" | "high"; media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp"; }; })[]; name?: string | undefined; } | { role: "system"; cache: boolean; content: string | { text: string; type: "text"; }[]; name?: string | undefined; } | { role: "assistant"; cache: boolean; content: string | ({ text: string; type: "text"; } | { type: "refusal"; refusal: string; })[] | null; tool_calls: { function: { arguments: string; name: string; }; type: "function"; id: string; }[]; refusal?: string | undefined; name?: string | undefined; })[]; }; tool_id: number; agent_history_items: { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; }[]; read_state_description: string; }; last_model_output?: any; file_system_state?: any; }, { agent_id?: string | undefined; n_steps?: number | undefined; consecutive_failures?: number | undefined; last_result?: any[] | null | undefined; last_plan?: string | null | undefined; last_model_output?: any; paused?: boolean | undefined; stopped?: boolean | undefined; session_initialized?: boolean | undefined; message_manager_state?: { history?: { system_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; state_message?: { content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; } | null | undefined; context_messages?: ({ content: string | ({ text: string; type?: "text" | undefined; } | { image_url: { url: string; detail?: "auto" | "low" | "high" | undefined; media_type?: "image/jpeg" | "image/png" | "image/gif" | "image/webp" | undefined; }; type?: "image_url" | undefined; })[]; name?: string | undefined; role?: "user" | undefined; cache?: boolean | undefined; } | { content: string | { text: string; type?: "text" | undefined; }[]; name?: string | undefined; role?: "system" | undefined; cache?: boolean | undefined; } | { content: string | ({ text: string; type?: "text" | undefined; } | { refusal: string; type?: "refusal" | undefined; })[] | null; refusal?: string | undefined; name?: string | undefined; role?: "assistant" | undefined; cache?: boolean | undefined; tool_calls?: { function: { arguments: string; name: string; }; id: string; type?: "function" | undefined; }[] | undefined; })[] | undefined; } | undefined; tool_id?: number | undefined; agent_history_items?: { step_number?: number | null | undefined; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; action_results?: string | null | undefined; error?: string | null | undefined; system_message?: string | null | undefined; }[] | undefined; read_state_description?: string | undefined; } | undefined; file_system_state?: any; }>; export type AgentState = z.infer; export declare const AgentStepInfoSchema: z.ZodObject<{ step_number: z.ZodNumber; max_steps: z.ZodNumber; }, "strip", z.ZodTypeAny, { step_number: number; max_steps: number; }, { step_number: number; max_steps: number; }>; export type AgentStepInfo = z.infer; export declare const ActionResultSchema: z.ZodEffects>; success: z.ZodDefault>; error: z.ZodDefault>; attachments: z.ZodDefault>>; long_term_memory: z.ZodDefault>; extracted_content: z.ZodDefault>; include_extracted_content_only_once: z.ZodDefault; metadata: z.ZodDefault>>; include_in_memory: z.ZodDefault; }, "strip", z.ZodTypeAny, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>; export type ActionResultType = z.infer; export declare class ActionResult { is_done: boolean | null; success: boolean | null; error: string | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; constructor(data?: Partial); } export declare const StepMetadataSchema: z.ZodObject<{ step_start_time: z.ZodNumber; step_end_time: z.ZodNumber; step_number: z.ZodNumber; }, "strip", z.ZodTypeAny, { step_number: number; step_start_time: number; step_end_time: number; }, { step_number: number; step_start_time: number; step_end_time: number; }>; export type StepMetadata = z.infer; export declare const AgentBrainSchema: z.ZodObject<{ thinking: z.ZodDefault>; evaluation_previous_goal: z.ZodString; memory: z.ZodString; next_goal: z.ZodString; }, "strip", z.ZodTypeAny, { evaluation_previous_goal: string; memory: string; next_goal: string; thinking: string | null; }, { evaluation_previous_goal: string; memory: string; next_goal: string; thinking?: string | null | undefined; }>; export type AgentBrain = z.infer; export declare const AgentOutputSchema: z.ZodObject<{ thinking: z.ZodDefault>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action: z.ZodArray, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">; }, "strip", z.ZodTypeAny, { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; }, { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; }>; export type AgentOutput = z.infer; export declare const BrowserStateHistorySchema: z.ZodObject<{ url: z.ZodString; title: z.ZodString; tabs: z.ZodArray; }, "strip", z.ZodTypeAny, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }>, "many">; interacted_element: z.ZodArray; node_type: z.ZodNativeEnum; node_value: z.ZodString; node_name: z.ZodString; attributes: z.ZodNullable>; bounds: z.ZodNullable>; x_path: z.ZodString; element_hash: z.ZodNumber; }, "strip", z.ZodTypeAny, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }>>, "many">; screenshot_path: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }>; export type BrowserStateHistory = z.infer; export declare const AgentHistorySchema: z.ZodObject<{ model_output: z.ZodDefault>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action: z.ZodArray, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">; }, "strip", z.ZodTypeAny, { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; }, { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; }>>>; result: z.ZodArray>; success: z.ZodDefault>; error: z.ZodDefault>; attachments: z.ZodDefault>>; long_term_memory: z.ZodDefault>; extracted_content: z.ZodDefault>; include_extracted_content_only_once: z.ZodDefault; metadata: z.ZodDefault>>; include_in_memory: z.ZodDefault; }, "strip", z.ZodTypeAny, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>, "many">; state: z.ZodObject<{ url: z.ZodString; title: z.ZodString; tabs: z.ZodArray; }, "strip", z.ZodTypeAny, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }>, "many">; interacted_element: z.ZodArray; node_type: z.ZodNativeEnum; node_value: z.ZodString; node_name: z.ZodString; attributes: z.ZodNullable>; bounds: z.ZodNullable>; x_path: z.ZodString; element_hash: z.ZodNumber; }, "strip", z.ZodTypeAny, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }>>, "many">; screenshot_path: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }>; metadata: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { metadata: { step_number: number; step_start_time: number; step_end_time: number; } | null; model_output: { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; } | null; result: { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }; }, { result: { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }; metadata?: { step_number: number; step_start_time: number; step_end_time: number; } | null | undefined; model_output?: { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; } | null | undefined; }>; export type AgentHistory = z.infer; export declare const UsageSummarySchema: z.ZodObject<{ total_cost: z.ZodDefault; total_tokens: z.ZodDefault; }, "strip", z.ZodTypeAny, { total_cost: number; total_tokens: number; }, { total_cost?: number | undefined; total_tokens?: number | undefined; }>; export type UsageSummary = z.infer; export declare const AgentHistoryListSchema: z.ZodObject<{ history: z.ZodArray>; evaluation_previous_goal: z.ZodDefault>; memory: z.ZodDefault>; next_goal: z.ZodDefault>; action: z.ZodArray, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">; }, "strip", z.ZodTypeAny, { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; }, { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; }>>>; result: z.ZodArray>; success: z.ZodDefault>; error: z.ZodDefault>; attachments: z.ZodDefault>>; long_term_memory: z.ZodDefault>; extracted_content: z.ZodDefault>; include_extracted_content_only_once: z.ZodDefault; metadata: z.ZodDefault>>; include_in_memory: z.ZodDefault; }, "strip", z.ZodTypeAny, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>, { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }, { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }>, "many">; state: z.ZodObject<{ url: z.ZodString; title: z.ZodString; tabs: z.ZodArray; }, "strip", z.ZodTypeAny, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }, { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }>, "many">; interacted_element: z.ZodArray; node_type: z.ZodNativeEnum; node_value: z.ZodString; node_name: z.ZodString; attributes: z.ZodNullable>; bounds: z.ZodNullable>; x_path: z.ZodString; element_hash: z.ZodNumber; }, "strip", z.ZodTypeAny, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }, { bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; }>>, "many">; screenshot_path: z.ZodDefault>; }, "strip", z.ZodTypeAny, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }, { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }>; metadata: z.ZodDefault>>; }, "strip", z.ZodTypeAny, { metadata: { step_number: number; step_start_time: number; step_end_time: number; } | null; model_output: { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; } | null; result: { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }; }, { result: { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }; metadata?: { step_number: number; step_start_time: number; step_end_time: number; } | null | undefined; model_output?: { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; } | null | undefined; }>, "many">; usage: z.ZodDefault; total_tokens: z.ZodDefault; }, "strip", z.ZodTypeAny, { total_cost: number; total_tokens: number; }, { total_cost?: number | undefined; total_tokens?: number | undefined; }>>>; }, "strip", z.ZodTypeAny, { history: { metadata: { step_number: number; step_start_time: number; step_end_time: number; } | null; model_output: { evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; thinking: string | null; action: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[]; } | null; result: { error: string | null; is_done: boolean | null; success: boolean | null; attachments: string[] | null; long_term_memory: string | null; extracted_content: string | null; include_extracted_content_only_once: boolean; metadata: Record | null; include_in_memory: boolean; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path: string | null; }; }[]; usage: { total_cost: number; total_tokens: number; } | null; }, { history: { result: { error?: string | null | undefined; is_done?: boolean | null | undefined; success?: boolean | null | undefined; attachments?: string[] | null | undefined; long_term_memory?: string | null | undefined; extracted_content?: string | null | undefined; include_extracted_content_only_once?: boolean | undefined; metadata?: Record | null | undefined; include_in_memory?: boolean | undefined; }[]; state: { url: string; title: string; tabs: { url: string; title: string; target_id: string; parent_target_id?: string | undefined; }[]; interacted_element: ({ bounds: { x: number; y: number; width: number; height: number; } | null; node_id: number; backend_node_id: number; node_type: import("../dom/views").NodeType; node_name: string; node_value: string; attributes: Record | null; frame_id: string | null; x_path: string; element_hash: number; } | null)[]; screenshot_path?: string | null | undefined; }; metadata?: { step_number: number; step_start_time: number; step_end_time: number; } | null | undefined; model_output?: { action: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[]; evaluation_previous_goal?: string | null | undefined; memory?: string | null | undefined; next_goal?: string | null | undefined; thinking?: string | null | undefined; } | null | undefined; }[]; usage?: { total_cost?: number | undefined; total_tokens?: number | undefined; } | null | undefined; }>; export type AgentHistoryList = z.infer; export declare class HistoryItemHelper implements HistoryItem { step_number: number | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action_results: string | null; error: string | null; system_message: string | null; constructor(data: HistoryItem); toString(): string; } export declare class MessageHistoryHelper implements MessageHistory { system_message: BaseMessage | null; state_message: BaseMessage | null; context_messages: BaseMessage[]; constructor(data: MessageHistory); getMessages(): BaseMessage[]; } export declare class AgentStepInfoHelper implements AgentStepInfo { step_number: number; max_steps: number; constructor(step_number: number, max_steps: number); isLastStep(): boolean; } export declare class StepMetadataHelper implements StepMetadata { step_start_time: number; step_end_time: number; step_number: number; constructor(data: StepMetadata); get durationSeconds(): number; } export declare class AgentOutputHelper implements AgentOutput { thinking: string | null; evaluation_previous_goal: string | null; memory: string | null; next_goal: string | null; action: ActionModel[]; constructor(data: AgentOutput); get currentState(): AgentBrain; } export declare class AgentHistoryListHelper implements AgentHistoryList { history: AgentHistory[]; usage: UsageSummary | null; constructor(data: AgentHistoryList); totalDurationSeconds(): number; get length(): number; toString(): string; addItem(historyItem: AgentHistory): void; isDone(): boolean; isSuccessful(): boolean | null; hasErrors(): boolean; errors(): (string | null)[]; finalResult(): string | null; urls(): (string | null)[]; screenshotPaths(nLast?: number, returnNoneIfNotScreenshot?: boolean): (string | null)[]; actionNames(): string[]; modelThoughts(): AgentBrain[]; modelOutputs(): AgentOutput[]; modelActions(): Record[]; actionResults(): ActionResult[]; extractedContent(): string[]; numberOfSteps(): number; } export declare class AgentError { static readonly VALIDATION_ERROR = "Invalid model output format. Please follow the correct schema."; static readonly RATE_LIMIT_ERROR = "Rate limit reached. Waiting before retry."; static readonly NO_VALID_ACTION = "No valid action found"; static formatError(error: Error, includeTrace?: boolean): string; } export declare function createAgentSettings(options?: Partial): AgentSettings; export declare function createAgentState(options?: Partial): AgentState; export declare function createActionResult(options?: Partial): ActionResult; export declare function createAgentStepInfo(step_number: number, max_steps: number): AgentStepInfo; export declare function createStepMetadata(step_start_time: number, step_end_time: number, step_number: number): StepMetadata; export declare function createAgentOutput(action: ActionModel[], options?: Partial>): AgentOutput; export declare function createAgentHistory(result: ActionResult[], state: BrowserStateHistory, options?: Partial>): AgentHistory; export declare function createAgentHistoryList(history: AgentHistory[], options?: Partial>): AgentHistoryList; //# sourceMappingURL=views.d.ts.map