@sema-agent/core
Version:
Stateless, task-oriented AI agent core
13 lines (12 loc) • 687 B
TypeScript
import type { AgentCoreRuntimeDeps } from "../internal/harness-types.js";
import type { Brain } from "./types.js";
/**
* Build the agent-core runtime dependency object from a Brain.
* `completeSimple` (used by compaction/summarization) is derived from `stream`
* when the brain does not provide one explicitly.
*
* A supplied `brain.complete` is forwarded BY REFERENCE, never re-wrapped: the summary path's
* budget-escalation recovery keys on `errorKind`, so anything that rebuilt the message here would
* disable that recovery for every brain at once (pinned in `brain-complete-contract.test.ts`).
*/
export declare function brainToRuntime(brain: Brain): AgentCoreRuntimeDeps;