pub struct CompiledPackAgentConfig {Show 15 fields
pub name: String,
pub enabled: bool,
pub profile: String,
pub adapter: Option<String>,
pub format: Option<String>,
pub resolved_format: String,
pub token_budget: Option<i32>,
pub prompt_md: String,
pub toolsets: Vec<String>,
pub extracted_constraints: Vec<String>,
pub extracted_tool_refs: Vec<String>,
pub extracted_rag_config: Option<String>,
pub description: Option<String>,
pub tags: Vec<String>,
pub system_prompt: Option<String>,
}Expand description
Pack agent-to-toolset bindings with extracted markdown metadata.
This struct represents the fully-compiled agent configuration, combining manifest settings with extracted markdown metadata. All reference fields (profile, adapter, format) have been validated during compilation.
Fields§
§name: StringAgent identifier (key from [agents.NAME] in manifest).
enabled: boolWhether agent is enabled. Defaults to true.
profile: StringProfile reference (validated to exist in manifest.profiles).
adapter: Option<String>Adapter override. Falls back to profile’s adapter if None.
format: Option<String>Format override. Falls back to profile’s format if None.
resolved_format: StringResolved format (from agent or profile). Always populated.
token_budget: Option<i32>Token budget override.
prompt_md: StringPath to agent prompt markdown.
toolsets: Vec<String>Toolset references (validated to exist in manifest.toolsets).
extracted_constraints: Vec<String>Constraints extracted from ```constraints block in agent markdown.
extracted_tool_refs: Vec<String>Tool references extracted from ```tools block (validated against TOML).
extracted_rag_config: Option<String>RAG configuration extracted from ```rag block.
description: Option<String>Human-readable description (from manifest or extracted from prompt_md).
Tags for skill discovery and categorization.
system_prompt: Option<String>Resolved system prompt text extracted from the agent’s markdown file.
Populated from MarkdownDoc.system during compilation so downstream
consumers (A2A, AGENTS.md) do not need to re-read the markdown file.
Trait Implementations§
Source§impl Clone for CompiledPackAgentConfig
impl Clone for CompiledPackAgentConfig
Source§fn clone(&self) -> CompiledPackAgentConfig
fn clone(&self) -> CompiledPackAgentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more