Skip to main content

Module config

Module config 

Source
Expand description

Runtime configuration and cancellation state. Configuration types for an AgentSession.

AgentConfig aggregates everything a session needs: model behaviour (system prompt, optional iteration cap), execution environment (cwd, env), and the pluggable extension points (policies, storage, compaction, permissions).

Structs§

AgentConfig
Configuration for an AgentSession.
CancellationState
Shared cancellation state for one agent runtime.
RetryConfig
Retry behaviour for transient provider failures.
TokenBudget
Token budget that triggers automatic compaction before the hard limit is hit.

Enums§

TaskPath
Workflow path — the agent tailors its runtime behaviour and prompt guidance to match the expected scope and risk of the task.

Functions§

platform_base_env
Return the small set of host environment variables needed for tools to launch platform-native child processes without inheriting the full process environment.