/** * Memory tools for AI agents — Anthropic memory and custom operation-backed tools. * * @see https://ai-sdk.dev/docs/agents/memory * @see https://console.anthropic.com/docs/en/agents-and-tools/tool-use/memory-tool */ import type { Tool } from 'ai'; import type { AgentMemoryStore } from './agent-memory-store'; /** Action shape from Anthropic memory_20250818 tool. */ export interface AnthropicMemoryAction { command: 'view' | 'create' | 'str_replace' | 'insert' | 'delete' | 'rename'; path?: string; view_range?: [number, number]; file_text?: string; old_str?: string; new_str?: string; insert_line?: number; insert_text?: string; old_path?: string; new_path?: string; } /** * Creates the Anthropic memory tool backed by an AgentMemoryStore. * Use when provider is Anthropic and agent needs persistent memory. * * @param store - Storage backend (e.g. InMemoryAgentMemoryStore for dev) * @returns AI SDK tool for use with ToolLoopAgent */ export declare function createAnthropicMemoryTool(store: AgentMemoryStore): Tool;