Skip to main content

Crate agentzero_config

Crate agentzero_config 

Source
Expand description

Configuration loading and policy mapping for AgentZero.

Loads agentzero.toml with dotenv overlay, validates all fields, and maps the config model into security policies (ToolSecurityPolicy, AuditPolicy) consumed by the runtime.

Modules§

watcher

Structs§

AgentSettings
AgentZeroConfig
AuditConfig
AuditPolicy
AutonomyConfig
BrowserConfig
ChannelsGlobalConfig
ComposioConfig
ComputerUseConfig
CostConfig
CredentialProfile
DelegateAgentConfig
EmbeddingRoute
EstopConfig
GatewayConfig
HookSettings
HttpRequestConfig
IdentityConfig
McpConfig
MemoryConfig
ModelProviderProfile
ModelRoute
MultimodalConfig
NodeControlConfig
ObservabilityConfig
OtpConfig
OutboundLeakGuardConfig
PerplexityFilterConfig
PluginConfig
ProviderConfig
ProviderOptionsConfig
QueryClassificationConfig
QueryClassificationRule
ReadFileConfig
ResearchConfig
ResolvedTemplate
A resolved template with its source location and content.
RuntimeConfig
SecurityConfig
ShellConfig
SkillsConfig
SyscallAnomalyConfig
TemplateSet
Result of discovering templates in a workspace.
UrlAccessConfig
WasmRuntimeConfig
WasmSecurityConfig
WebFetchConfig
WebSearchConfig
WriteFileConfig

Enums§

TemplateFile
All supported template files.

Constants§

MAIN_SESSION_TEMPLATES
Templates that only load in the main session.
SHARED_SESSION_TEMPLATES
Templates that load in all sessions (main + shared).
TEMPLATE_LOAD_ORDER
Deterministic load order for templates. Identity and Soul come first (define who the agent is), then Tools and Agents (define what it can do), then Boot/Bootstrap (initialization), Heartbeat (lifecycle), User (context).

Functions§

discover_shared_templates
Discover templates for a shared session (excludes main-session-only templates).
discover_templates
Discover and load all templates from the workspace.
list_template_sources
List all template files that exist in the given search directories, showing which directory each was resolved from.
load
load_audit_policy
load_env_var
load_tool_security_policy
template_paths_for_workspace
Generate template paths for a workspace (workspace root only, for backward compatibility).
template_search_dirs
Template search directories in precedence order (highest first).
update_auto_approve
Update the [autonomy].auto_approve list in a config TOML file on disk.