UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

11 lines (10 loc) • 657 B
import type { ToolSpec } from "../core/tool-spec.js"; /** The tool's default model-facing name (a host may give it another with {@link MemoryWriteToolOptions.name}). */ export declare const MEMORY_WRITE_TOOL_NAME = "memory_write"; export interface MemoryWriteToolOptions { /** The tool's name on the roster. Absent = {@link MEMORY_WRITE_TOOL_NAME}. */ name?: string; } /** Build the structured memory write tool. Throws a `TypeError` on a `name` that is not a caller tool name (the one judgment every * caller tool's name passes, `callerToolNameProblem`). */ export declare function createMemoryWriteTool(opts?: MemoryWriteToolOptions): ToolSpec;