Module config

Module config 

Source
Expand description

AgentConfig — configuration for a single agentic loop run.

This module also defines the public ceiling constants used by HTTP and CLI callers to clamp untrusted user input to safe values. Centralising them here ensures a single source of truth across all entry points.

Structs§

AgentConfig
Configuration that governs a single agentic loop run.

Enums§

AgentConfigError
Error returned when AgentConfig::validated detects an invalid field.

Constants§

DEFAULT_MAX_ITERATIONS
Default value for AgentConfig::max_iterations.
DEFAULT_MAX_PARALLEL_TOOLS
Default value for AgentConfig::max_parallel_tools.
MAX_ITERATIONS_CEILING
Hard ceiling on max_iterations accepted from external callers.
MAX_PARALLEL_TOOLS_CEILING
Hard ceiling on max_parallel_tools accepted from external callers.
MAX_TOOL_TIMEOUT_MS_CEILING
Hard ceiling on tool_timeout_ms accepted from external callers (60 s).
MIN_CONTEXT_BUDGET_CHARS
Hard floor on context_budget_chars (100 characters).
MIN_TOOL_TIMEOUT_MS
Hard floor on tool_timeout_ms accepted from external callers (100 ms).