UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

11 lines (10 loc) • 763 B
/** * A direct writer's commit point: a conversation row the leg adds itself (a reconcile's result, a restated frame, a resumed * call's settled result) passes the leg's one admission seat first — `session.append` (`mods/session-append.ts`), the seat * the harness calls at its own commit points — and then the store keeps it. The seat may rewrite the row in place; what is * stored, and what the caller reads off the row after, is the row as admitted. Absent seat ⇒ the row as made. */ import type { AgentMessage, RowAdmission } from "../internal/harness-types.js"; export declare function appendAdmittedRow(admit: RowAdmission | undefined, session: { appendMessage(message: AgentMessage): Promise<string>; }, row: AgentMessage): Promise<string>;