Expand description
How a developer’s agent sessions reach AI Tracing: the developer’s choice, bounded by the workspace’s AI traffic policy.
Structs§
- Resolved
Mode - The mode of a session and how it came about.
Enums§
- Mode
Reason - Why a session runs in the mode it does.
- Tracing
Mode - The capture path of a session. Exactly one is meant to be active.
- Traffic
Policy - The workspace’s AI traffic policy, set by an admin in Control Plane
(
ai_traffic_policyofGET /api/v1/workspace/settings).
Constants§
- GATEWAY_
SESSION_ ENV - Set to
1on an agent started through the AI Gateway, and on nothing else: what tells the capture hooks to record nothing. - MODE_
ENV - The environment variable that names the mode.
visdomreads it as a choice and sets it on the agent it launches, where the capture hooks read it: undergatewaythey record nothing, the gateway does.
Functions§
- configured_
mode - The mode somebody chose:
--mode, thenVISDOM_TRACING_MODE, then the repository config, then the user config.Nonewhen nobody did. - effective_
mode - The mode a session runs in. An admin may enforce one (
enforced: gateway,direct: hooks); underper_agent, or when the policy is not known, the developer’s choice stands, and hooks when they made none. - parse_
mode - Parse a mode as the command line and the config files spell it.