import Anthropic$1 from "@anthropic-ai/sdk"; import { z } from "zod/v4"; //#region src/tools/types.d.ts /** * Memory tool command types as defined by Anthropic's memory tool API. * @beta * @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/memory-tool */ export declare const Memory20250818ViewCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"view">; path: z.ZodString; }, z.core.$strip>; export declare const Memory20250818CreateCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"create">; path: z.ZodString; file_text: z.ZodString; }, z.core.$strip>; export declare const Memory20250818StrReplaceCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"str_replace">; path: z.ZodString; old_str: z.ZodString; new_str: z.ZodString; }, z.core.$strip>; export declare const Memory20250818InsertCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"insert">; path: z.ZodString; insert_line: z.ZodNumber; insert_text: z.ZodString; }, z.core.$strip>; export declare const Memory20250818DeleteCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"delete">; path: z.ZodString; }, z.core.$strip>; export declare const Memory20250818RenameCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"rename">; old_path: z.ZodString; new_path: z.ZodString; }, z.core.$strip>; export declare const Memory20250818CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ command: z.ZodLiteral<"view">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"create">; path: z.ZodString; file_text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"str_replace">; path: z.ZodString; old_str: z.ZodString; new_str: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"insert">; path: z.ZodString; insert_line: z.ZodNumber; insert_text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"delete">; path: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"rename">; old_path: z.ZodString; new_path: z.ZodString; }, z.core.$strip>], "command">; export type Memory20250818ViewCommand = z.infer; export type Memory20250818CreateCommand = z.infer; export type Memory20250818StrReplaceCommand = z.infer; export type Memory20250818InsertCommand = z.infer; export type Memory20250818DeleteCommand = z.infer; export type Memory20250818RenameCommand = z.infer; export type Memory20250818Command = z.infer; /** * Options for creating a memory tool. */ export interface MemoryTool20250818Options { /** * Optional execute function that handles memory command execution. * In LangChain, this is typically handled separately when processing tool calls, * but this option is provided for compatibility with the AI SDK pattern. * Note: This option is currently unused but reserved for future use. */ execute: (action: Memory20250818Command) => Promise | string; } /** * Memory tool type definition. */ export type MemoryTool20250818 = Anthropic$1.Beta.BetaMemoryTool20250818; /** * Text editor tool command types for Claude 4.x models. * @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool */ export declare const TextEditor20250728ViewCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"view">; path: z.ZodString; view_range: z.ZodOptional>; }, z.core.$strip>; export declare const TextEditor20250728StrReplaceCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"str_replace">; path: z.ZodString; old_str: z.ZodString; new_str: z.ZodString; }, z.core.$strip>; export declare const TextEditor20250728CreateCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"create">; path: z.ZodString; file_text: z.ZodString; }, z.core.$strip>; export declare const TextEditor20250728InsertCommandSchema: z.ZodObject<{ command: z.ZodLiteral<"insert">; path: z.ZodString; insert_line: z.ZodNumber; new_str: z.ZodString; }, z.core.$strip>; export declare const TextEditor20250728CommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ command: z.ZodLiteral<"view">; path: z.ZodString; view_range: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"str_replace">; path: z.ZodString; old_str: z.ZodString; new_str: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"create">; path: z.ZodString; file_text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ command: z.ZodLiteral<"insert">; path: z.ZodString; insert_line: z.ZodNumber; new_str: z.ZodString; }, z.core.$strip>], "command">; export type TextEditor20250728ViewCommand = z.infer; export type TextEditor20250728StrReplaceCommand = z.infer; export type TextEditor20250728CreateCommand = z.infer; export type TextEditor20250728InsertCommand = z.infer; export type TextEditor20250728Command = z.infer; /** * Computer use tool action types for Claude Opus 4.5. * Includes zoom action which is not available in earlier versions. * @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool */ export type Computer20251124Action = Computer20250124Action | ComputerZoomAction; /** * Computer use tool action types for Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus 4, and Sonnet 3.7 versions. * @see https://platform.claude.com/docs/en/agents-and-tools/tool-use/computer-use-tool */ export type Computer20250124Action = ComputerScreenshotAction | ComputerLeftClickAction | ComputerRightClickAction | ComputerMiddleClickAction | ComputerDoubleClickAction | ComputerTripleClickAction | ComputerLeftClickDragAction | ComputerLeftMouseDownAction | ComputerLeftMouseUpAction | ComputerScrollAction | ComputerTypeAction | ComputerKeyAction | ComputerMouseMoveAction | ComputerHoldKeyAction | ComputerWaitAction; export declare const ComputerScreenshotActionSchema: z.ZodObject<{ action: z.ZodLiteral<"screenshot">; }, z.core.$strip>; export declare const ComputerLeftClickActionSchema: z.ZodObject<{ action: z.ZodLiteral<"left_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerRightClickActionSchema: z.ZodObject<{ action: z.ZodLiteral<"right_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerMiddleClickActionSchema: z.ZodObject<{ action: z.ZodLiteral<"middle_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerDoubleClickActionSchema: z.ZodObject<{ action: z.ZodLiteral<"double_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerTripleClickActionSchema: z.ZodObject<{ action: z.ZodLiteral<"triple_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerLeftClickDragActionSchema: z.ZodObject<{ action: z.ZodLiteral<"left_click_drag">; start_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; end_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerLeftMouseDownActionSchema: z.ZodObject<{ action: z.ZodLiteral<"left_mouse_down">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerLeftMouseUpActionSchema: z.ZodObject<{ action: z.ZodLiteral<"left_mouse_up">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerScrollActionSchema: z.ZodObject<{ action: z.ZodLiteral<"scroll">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; scroll_direction: z.ZodEnum<{ down: "down"; left: "left"; right: "right"; up: "up"; }>; scroll_amount: z.ZodNumber; }, z.core.$strip>; export declare const ComputerTypeActionSchema: z.ZodObject<{ action: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>; export declare const ComputerKeyActionSchema: z.ZodObject<{ action: z.ZodLiteral<"key">; key: z.ZodString; }, z.core.$strip>; export declare const ComputerMouseMoveActionSchema: z.ZodObject<{ action: z.ZodLiteral<"mouse_move">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const ComputerHoldKeyActionSchema: z.ZodObject<{ action: z.ZodLiteral<"hold_key">; key: z.ZodString; }, z.core.$strip>; export declare const ComputerWaitActionSchema: z.ZodObject<{ action: z.ZodLiteral<"wait">; duration: z.ZodOptional; }, z.core.$strip>; export declare const ComputerZoomActionSchema: z.ZodObject<{ action: z.ZodLiteral<"zoom">; region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>; export declare const Computer20250124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"screenshot">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"right_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"middle_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"double_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"triple_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_click_drag">; start_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; end_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_mouse_down">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_mouse_up">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"scroll">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; scroll_direction: z.ZodEnum<{ down: "down"; left: "left"; right: "right"; up: "up"; }>; scroll_amount: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"key">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"mouse_move">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"hold_key">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"wait">; duration: z.ZodOptional; }, z.core.$strip>], "action">; export declare const Computer20251124ActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ action: z.ZodLiteral<"screenshot">; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"right_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"middle_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"double_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"triple_click">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_click_drag">; start_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; end_coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_mouse_down">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"left_mouse_up">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"scroll">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; scroll_direction: z.ZodEnum<{ down: "down"; left: "left"; right: "right"; up: "up"; }>; scroll_amount: z.ZodNumber; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"type">; text: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"key">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"mouse_move">; coordinate: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"hold_key">; key: z.ZodString; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"wait">; duration: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ action: z.ZodLiteral<"zoom">; region: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>; }, z.core.$strip>], "action">; export type ComputerScreenshotAction = z.infer; export type ComputerLeftClickAction = z.infer; export type ComputerRightClickAction = z.infer; export type ComputerMiddleClickAction = z.infer; export type ComputerDoubleClickAction = z.infer; export type ComputerTripleClickAction = z.infer; export type ComputerLeftClickDragAction = z.infer; export type ComputerLeftMouseDownAction = z.infer; export type ComputerLeftMouseUpAction = z.infer; export type ComputerScrollAction = z.infer; export type ComputerTypeAction = z.infer; export type ComputerKeyAction = z.infer; export type ComputerMouseMoveAction = z.infer; export type ComputerHoldKeyAction = z.infer; export type ComputerWaitAction = z.infer; export type ComputerZoomAction = z.infer; /** * Bash tool command types for Claude 4 models and Claude 3.7. * @see https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/bash-tool */ export declare const Bash20250124ExecuteCommandSchema: z.ZodObject<{ command: z.ZodString; }, z.core.$strip>; export declare const Bash20250124RestartCommandSchema: z.ZodObject<{ restart: z.ZodLiteral; }, z.core.$strip>; export declare const Bash20250124CommandSchema: z.ZodUnion, z.ZodObject<{ restart: z.ZodLiteral; }, z.core.$strip>]>; export type Bash20250124ExecuteCommand = z.infer; export type Bash20250124RestartCommand = z.infer; export type Bash20250124Command = z.infer; //#endregion //# sourceMappingURL=types.d.cts.map