Skip to content

AgentRunContext

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

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.

readonly optional token?: string

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

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:21

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