/** * Hermes-compatible `memory` tool dispatch + TypeBox parameter schema. */ import { Type } from "typebox"; import { MemoryStore, type MemoryResult, type MemoryTarget } from "./memory-store.ts"; export declare const memoryToolParameters: Type.TObject<{ target: Type.TUnion<[Type.TLiteral<"memory">, Type.TLiteral<"user">]>; action: Type.TOptional, Type.TLiteral<"replace">, Type.TLiteral<"remove">]>>; content: Type.TOptional; new_text: Type.TOptional; old_text: Type.TOptional; operations: Type.TOptional, Type.TLiteral<"replace">, Type.TLiteral<"remove">]>; content: Type.TOptional; new_text: Type.TOptional; old_text: Type.TOptional; }>>>; }>; export type MemoryToolParams = { target?: MemoryTarget | null; action?: "add" | "replace" | "remove" | null; content?: string | null; new_text?: string | null; old_text?: string | null; operations?: Array<{ action: "add" | "replace" | "remove"; content?: string | null; new_text?: string | null; old_text?: string | null; }> | null; }; /** * Run one memory tool call. Returns Hermes-shaped result object (caller JSON-stringifies). */ export declare function executeMemoryTool(store: MemoryStore, params: MemoryToolParams): Promise; /** Pi tool result wrapper: Hermes JSON as a single text content block. */ export declare function wrapMemoryToolResult(result: MemoryResult): { content: Array<{ type: "text"; text: string; }>; details: MemoryResult; }; export declare const MEMORY_TOOL_DESCRIPTION: string; //# sourceMappingURL=memory-tool.d.ts.map