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.
Methods
Section titled “Methods”acknowledge()
Section titled “acknowledge()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
receipts |
readonly InputReceipt[] |
options |
{ signal: AbortSignal; } |
options.signal |
AbortSignal |
Returns
Section titled “Returns”void | Promise<void>
poll()
Section titled “poll()”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
InputScope & object |
Returns
Section titled “Returns”| readonly QueuedInput[]
| Promise<readonly QueuedInput[]>