@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
11 lines • 617 B
text/typescript
import { BetaRunnableTool, Promisable } from "../../lib/tools/BetaRunnableTool.mjs";
import { BetaMemoryTool20250818Command, BetaToolResultContentBlockParam } from "../../resources/beta.mjs";
type Command = BetaMemoryTool20250818Command['command'];
export type MemoryToolHandlers = {
[K in Command]: (command: Extract<BetaMemoryTool20250818Command, {
command: K;
}>) => Promisable<string | Array<BetaToolResultContentBlockParam>>;
};
export declare function betaMemoryTool(handlers: MemoryToolHandlers): BetaRunnableTool<BetaMemoryTool20250818Command>;
export {};
//# sourceMappingURL=memory.d.mts.map