Skip to content

AgentRunContext

Defined in: packages/engine/src/lib/agent-session/agent-config.ts:21

Who an Agent Run acts for, as supplied when the connection opened. Model factories and budget resolvers receive it once per run. It never reaches a prompt, tool arguments or an event.

The agent loop is experimental in 0.3 and may change in any minor release.

readonly optional token?: string

Defined in: packages/engine/src/lib/agent-session/agent-config.ts:25

The credential the host forwarded with the connection, when there is one.


readonly user: unknown

Defined in: packages/engine/src/lib/agent-session/agent-config.ts:23

The user supplied when the connection opened, passed through unchanged.