UNPKG

@aksolab/recall

Version:

A memory management package for AI SDK memory functionality

99 lines 2.79 kB
import { z } from 'zod'; import { MemoryManager } from '../memoryManager'; export declare function createTools(memoryManager: MemoryManager): Promise<{ coreMemoryAppend: import("ai").Tool<z.ZodObject<{ block: z.ZodString; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; block: string; }, { content: string; block: string; }>, string> & { execute: (args: { content: string; block: string; }, options: import("ai").ToolExecutionOptions) => PromiseLike<string>; }; coreMemoryReplace: import("ai").Tool<z.ZodObject<{ block: z.ZodString; content: z.ZodString; }, "strip", z.ZodTypeAny, { content: string; block: string; }, { content: string; block: string; }>, { status: string; message: string; }> & { execute: (args: { content: string; block: string; }, options: import("ai").ToolExecutionOptions) => PromiseLike<{ status: string; message: string; }>; }; archivalMemorySearch: import("ai").Tool<z.ZodObject<{ query: z.ZodString; }, "strip", z.ZodTypeAny, { query: string; }, { query: string; }>, { status: string; data: import("../archiveProviders").ArchiveEntry[]; error?: undefined; } | { status: string; error: unknown; data?: undefined; }> & { execute: (args: { query: string; }, options: import("ai").ToolExecutionOptions) => PromiseLike<{ status: string; data: import("../archiveProviders").ArchiveEntry[]; error?: undefined; } | { status: string; error: unknown; data?: undefined; }>; }; archivalMemoryInsert: import("ai").Tool<z.ZodObject<{ name: z.ZodString; content: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; content: string; }, { name: string; content: string; }>, { status: string; data: import("../archiveProviders").ArchiveEntry; error?: undefined; } | { status: string; error: unknown; data?: undefined; }> & { execute: (args: { name: string; content: string; }, options: import("ai").ToolExecutionOptions) => PromiseLike<{ status: string; data: import("../archiveProviders").ArchiveEntry; error?: undefined; } | { status: string; error: unknown; data?: undefined; }>; }; }>; //# sourceMappingURL=tools.d.ts.map