UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

14 lines (13 loc) • 455 B
import { projectToolSchema } from "../brain/tool-schema-projection.js"; export const PREFIX_CHANGE_CAUSES = Object.freeze([ "leg_start_inputs", "tool_table", "compaction", "request_policy", "model_namespace", "history_rewrite", "tool_result_clear", ]); export function toolsToFingerprintInputs(tools) { return tools.map((t) => ({ name: t.name, description: t.description, parameters: projectToolSchema(t.parameters) })); }