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 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<&Trigger>
pub fn get_schedule_triggers(&self) -> Vec<&Trigger>
Get schedule triggers for this agent (only workflow agents can have them).
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AgentConfig
impl JsonSchema for AgentConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for AgentConfig
impl Serialize for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more