AgentConfig

Type Alias AgentConfig 

Source
pub type AgentConfig = AgentManifest;
Expand description

Type alias for agent configuration using the AgentManifest structure

Aliased Type§

pub struct AgentConfig {
    pub metadata: AgentMetadata,
    pub requirements: Option<Requirements>,
    pub config: HashMap<String, Value>,
}

Fields§

§metadata: AgentMetadata

Core metadata about the agent.

Contains essential information like name, description, author, and categorization. This metadata is used for discovery, documentation, and dependency resolution.

§requirements: Option<Requirements>

Optional requirements and dependencies.

Specifies version requirements, platform constraints, and dependencies on other resources. If None, the agent has no special requirements.

§config: HashMap<String, Value>

Custom configuration values.

Arbitrary key-value pairs that can be used by the agent for configuration. Values can be any valid TOML type (string, number, boolean, array, table).

§Examples

[config]
max_tokens = 4000
style = "verbose"
features = ["linting", "formatting"]

[config.advanced]
retry_attempts = 3
timeout_seconds = 30