pub struct DomainAgentConfig {
pub domain: String,
pub name: String,
pub description: String,
pub system_prompt: String,
pub tools: Vec<String>,
pub model: Option<String>,
pub temperature: Option<f32>,
pub max_tokens: Option<usize>,
pub custom_config: HashMap<String, Value>,
}Expand description
Configuration for a domain-specific agent
Fields§
§domain: StringDomain this agent specializes in
name: StringAgent name
description: StringAgent description
system_prompt: StringSystem prompt for the agent
tools: Vec<String>Tools available to this agent
model: Option<String>Model to use for this agent
temperature: Option<f32>Temperature for generation
max_tokens: Option<usize>Max tokens for generation
custom_config: HashMap<String, Value>Custom configuration
Trait Implementations§
Source§impl Clone for DomainAgentConfig
impl Clone for DomainAgentConfig
Source§fn clone(&self) -> DomainAgentConfig
fn clone(&self) -> DomainAgentConfig
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 Debug for DomainAgentConfig
impl Debug for DomainAgentConfig
Source§impl<'de> Deserialize<'de> for DomainAgentConfig
impl<'de> Deserialize<'de> for DomainAgentConfig
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
Auto Trait Implementations§
impl Freeze for DomainAgentConfig
impl RefUnwindSafe for DomainAgentConfig
impl Send for DomainAgentConfig
impl Sync for DomainAgentConfig
impl Unpin for DomainAgentConfig
impl UnwindSafe for DomainAgentConfig
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