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 on an agent started through the AI Gateway, to that agent’s name, and on nothing else: what tells that agent’s capture hooks to record nothing.
- MODE_
ENV - The environment variable that names the developer’s choice of mode.
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.