@sema-agent/core
Version:
Stateless, task-oriented AI agent core
18 lines (17 loc) • 1.67 kB
TypeScript
/**
* The fast-tier door (`fast-tier-door.ts`) at the seats a task's prepare reads a Model object from — the role maps and the task's
* own model — each one function that prepare and the host's pre-check (`modelFaceResolvable`) both call, so the two cannot answer
* apart (prepare hands the door's notices a `tell`; the pre-check hands none). A word at a seat names a catalog entry, which the
* catalog door judged when the catalog was received.
*/
import { type FastTierTell } from "../fast-tier-door.js";
import type { ModelRoles } from "../model-seat.js";
import { resolveTaskModel, type PreparedRole } from "../roles.js";
import type { RunnerDeps } from "../types.js";
/** The run's model as a task's prepare resolves it ({@link resolveTaskModel}), with the input its own declarations came from
* (`PreparedRole.modelInput`); a Model object written at the request's model seat (`TaskSpec.model`, or `compactSession.model` for an
* idle compaction) passes the fast-tier door at that seat, as the request's (a role's object passes it at its role map's door,
* {@link receiveRoleMapPriced}). */
export declare function resolveRunModel(spec: Parameters<typeof resolveTaskModel>[0], deps: Pick<RunnerDeps, "models" | "roles" | "pricing">, seat?: "TaskSpec.model" | "compactSession.model", tell?: FastTierTell): PreparedRole;
/** A role map's door ({@link screenRoleMap}) and the fast-tier door over every Model object it binds, at the seat it was written. */
export declare function receiveRoleMapPriced(roles: ModelRoles | undefined, field: "RunnerDeps.roles" | "TaskSpec.roles", pricing: RunnerDeps["pricing"], tell?: FastTierTell): ModelRoles | undefined;