OpenConnectionOptions
Defined in: packages/engine/src/lib/agent-session/connection.ts:25
Server-owned context and clock for one connection. Never supplied to the Planner.
The agent loop is experimental in 0.3 and may change in any minor release.
Properties
Section titled “Properties”acknowledgementTimeoutMs?
Section titled “acknowledgementTimeoutMs?”
readonlyoptionalacknowledgementTimeoutMs?:number
Defined in: packages/engine/src/lib/agent-session/connection.ts:54
Maximum wait in milliseconds for the browser to acknowledge a UI change
with ui_applied. Defaults to 30,000. Must be a positive integer no
greater than 2,147,483,647, or opening the connection throws. On the
UI-only route, when it elapses, the run finishes with code
ui_ack_timeout, every queued utterance finishes as cancelled, and the
next utterance plans against its own Chart. A change_screen change of
an Agent Run waits as long, then its goals that depend on the change
answer unknown, a goal with a clarification verdict keeps
needs_clarification, and the next queued Screen Change starts on the
last acknowledged Chart.
capabilities?
Section titled “capabilities?”
readonlyoptionalcapabilities?:unknown
Defined in: packages/engine/src/lib/agent-session/connection.ts:33
Browser capability manifest, opaque until Client Tools are configured.
clock?
Section titled “clock?”
readonlyoptionalclock?: () =>number
Defined in: packages/engine/src/lib/agent-session/connection.ts:35
Monotonic millisecond clock for measuring run duration. Defaults to performance.now.
Returns
Section titled “Returns”number
scheduleTimeout?
Section titled “scheduleTimeout?”
readonlyoptionalscheduleTimeout?: (callback,ms) => () =>void
Defined in: packages/engine/src/lib/agent-session/connection.ts:41
Schedules a callback after a delay in milliseconds and returns a function
that cancels it. Agent Runs use it for their deadline. Defaults to
globalThis.setTimeout, cancelled with globalThis.clearTimeout.
Calls callback once after ms milliseconds and returns a function
that cancels the call when it has not happened yet.
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
number
Returns
Section titled “Returns”() => void
sessionId
Section titled “sessionId”
readonlysessionId:SessionId
Defined in: packages/engine/src/lib/agent-session/connection.ts:27
Session the host authorized before opening this connection.
token?
Section titled “token?”
readonlyoptionaltoken?:string
Defined in: packages/engine/src/lib/agent-session/connection.ts:31
Optional application credential. Provider API keys do not belong here.
readonlyuser:unknown
Defined in: packages/engine/src/lib/agent-session/connection.ts:29
Host-authenticated principal, opaque to the UI-only route. Use null for anonymous applications.