Skip to main content

Crate cookie_agent_config

Crate cookie_agent_config 

Source
Expand description

Strict runtime configuration and Markdown agent documents.

Structs§

AgentDocument
AgentFrontmatter
AgentLimits
AgentMaterializationInput
Validated authored-agent input for downstream runtime materialization.
AgentMdConfig
AgentModelFallback
AgentRegistry
Atomically validated authored agent documents, independent of model execution.
AnthropicCacheConfig
ApprovalConfig
BedrockCacheConfig
CacheConfig
ConfigLayerPaths
ContextCompactionConfig
DelegationConfig
EngineConfig
The decoded settings tables of config.toml: one field per settings table (for example [messaging] → EngineConfig::messaging). [mcp] and [plugins] decode separately onto crate::LoadedConfiguration. Exposed on crate::LoadedConfiguration::runtime.
LoadedConfiguration
LoadedMcpServer
McpConfig
McpOAuthSettings
McpServerConfig
MessagingConfig
ModelPricing
ModelRetryConfig
OpenAiCacheConfig
PermissionRule
PicoUsdPerMillion
PluginConfig
PluginsConfig
PricingConfig
ServerConfig
SessionTitleConfig
SkillAllowedTool
SkillDiagnostic
SkillDiscovery
SkillDocument
SkillFrontmatter
SkillRegistry
ToolOutputConfig

Enums§

AgentDocumentSource
AgentMode
AgentModelRef
CacheTtl
ConfigError
ContextCompactionTrigger
McpOAuthConfig
McpServerSource
OpenAiCacheMode
OpenAiPromptCacheRetention
OpenAiPromptCacheTtl
PermissionAction
PermissionEffect
PermissionValue
RollingCacheTtl
SkillContext

Constants§

BUILT_IN_APPROVAL_AGENT_ID
BUILT_IN_COMPACTION_AGENT_ID
BUILT_IN_DEFAULT_AGENT_ID
BUILT_IN_TITLE_AGENT_ID
PARENT_MODEL_EXPRESSION

Functions§

load
Loads user config and exact-cwd .cookie-agent with no upward search.
load_from_roots
Loads explicit roots, primarily for composition and adversarial tests.
load_skill_roots
Loads explicit skill roots in low-to-high project precedence order.
load_skills
Loads skills once for engine construction. Skill files are intentionally not hot-reloaded.
render_available_skills
simple_wildcard_match
* matches any characters including /; ? matches exactly one character.
write_mcp_server
Replace one [mcp.servers.<name>] table while preserving every unrelated item and comment. The candidate is accepted only when the strict loader can parse it as a complete configuration layer.