UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

8 lines (7 loc) • 456 B
import type { RunnerSelfSeat } from "../core/runner/contracts.js"; /** * Release a throwaway session, swallowing errors — best-effort cleanup for the verifier/cascade-rung * sessions that agents spin up and discard. Always call this in a `finally` so a throwing `runTask` * result handler or caller hook (`onRung`/`onRound`) can't leak the session. */ export declare function releaseSession(runner: RunnerSelfSeat, sessionId: string): Promise<void>;