Skip to content
providerkit
GitHub

InputInbox

Defined in: agents/src/steering.ts:54

Trusted host storage. Authenticate enqueue, poll and acknowledgement against the logical run’s owner and fence writes under its lease. These functions never grant tool authority.

acknowledge(receipts, options): void | Promise<void>;

Defined in: agents/src/steering.ts:66

Called only after checkpoint. Idempotent and monotonic: accepted may become consumed, never the reverse. Keep accepted-but-unconsumed content for recall after the run settles. A crash after this write must allow the same receipt again. Do not start another run.

Parameter Type
receipts readonly InputReceipt[]
options { signal: AbortSignal; }
options.signal AbortSignal

void | Promise<void>


poll(request):
| readonly QueuedInput[]
| Promise<readonly QueuedInput[]>;

Defined in: agents/src/steering.ts:57

Non-destructive, ordered prefix. Return at most limit.count records fitting limit.bytes. Keep an offered record immutable and available until acknowledge accepts it. No long poll.

Parameter Type
request InputScope & object

| readonly QueuedInput[] | Promise<readonly QueuedInput[]>