pub enum AgentConfig {
StandardAgent(StandardDefinition),
WorkflowAgent(WorkflowAgentDefinition),
}Expand description
Unified agent configuration enum
Variants§
StandardAgent(StandardDefinition)
Standard markdown-based agent
WorkflowAgent(WorkflowAgentDefinition)
Workflow-based agent — executes a workflow DAG instead of an LLM loop
Implementations§
Source§impl AgentConfig
impl AgentConfig
pub fn get_definition(&self) -> &StandardDefinition
Sourcepub fn version(&self) -> Option<String>
pub fn version(&self) -> Option<String>
Resolved agent version. Standard agents fall back to
default_agent_version(); workflow agents carry a required version.
Sourcepub fn get_description(&self) -> &str
pub fn get_description(&self) -> &str
Get the description of the agent
Sourcepub fn get_tools_config(&self) -> Option<&ToolsConfig>
pub fn get_tools_config(&self) -> Option<&ToolsConfig>
Get the tools configuration, if this is a standard agent.
Sourcepub fn get_schedule_triggers(&self) -> Vec<&WorkflowTrigger>
pub fn get_schedule_triggers(&self) -> Vec<&WorkflowTrigger>
Get schedule triggers for this agent (only workflow agents
can have them). Walks both the agent-level triggers and
each entry point’s triggers since both layers may declare
Schedule.
Sourcepub fn to_card(&self, server_config: &ServerConfig) -> AgentCard
pub fn to_card(&self, server_config: &ServerConfig) -> AgentCard
Build the public A2A [AgentCard] for this agent.
This is the cheap, card-only projection of an agent: it pulls just the
discovery metadata (name, description, version, icon, skills) and combines
it with the server’s static A2A settings. It deliberately does not
touch the system prompt / instructions, tools, model settings, or any
other execution config — callers that only need the card (the public
.well-known/agent.json endpoint, agent listings, CLI agent pickers)
should go through here instead of loading + matching the full definition.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for AgentConfig
impl ComposeSchema for AgentConfig
Source§impl Debug for AgentConfig
impl Debug for AgentConfig
Source§impl<'de> Deserialize<'de> for AgentConfig
impl<'de> Deserialize<'de> for AgentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for AgentConfig
impl JsonSchema for AgentConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more