agentskit.js

ControlSurfaceOptions

Auto-generated API reference for ControlSurfaceOptions.

Interface: ControlSurfaceOptions

Defined in: observability/src/prod-control.ts:51

#Properties

#audit?

optional audit?: (entry) => void

Defined in: observability/src/prod-control.ts:60

Audit log sink β€” gets every control action.

#Parameters

entry

ControlAuditEntry

#Returns

void


#bearerToken?

optional bearerToken?: string

Defined in: observability/src/prod-control.ts:58

Bearer token required for HTTP access. Required when using httpHandler(). Compared with constant-time equality.


#defaultRunId?

optional defaultRunId?: string

Defined in: observability/src/prod-control.ts:71

Fallback run id when neither runIdOf nor enriched top-level runId/id fields are present on the event.


#runIdOf?

optional runIdOf?: (event) => string | undefined

Defined in: observability/src/prod-control.ts:66

Optional resolver for correlating events to a run. Checked first. Canonical AgentEvent has no runId; use this or defaultRunId when feeding runtime events into the control surface.

#Parameters

event

AgentEvent

#Returns

string | undefined


#snapshotBufferSize?

optional snapshotBufferSize?: number

Defined in: observability/src/prod-control.ts:53

Max events retained per run for snapshots. Default 200.

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.