pub struct DiskAgentConfig {Show 20 fields
pub id: String,
pub name: String,
pub display_name: String,
pub description: String,
pub version: String,
pub enabled: bool,
pub port: u16,
pub endpoint: Option<String>,
pub dev_only: bool,
pub is_primary: bool,
pub default: bool,
pub system_prompt_file: Option<String>,
pub tags: Vec<String>,
pub category: Option<String>,
pub mcp_servers: Vec<String>,
pub skills: Vec<String>,
pub provider: Option<String>,
pub model: Option<String>,
pub card: AgentCardConfig,
pub oauth: OAuthConfig,
}Fields§
§id: String§name: String§display_name: String§description: String§version: String§enabled: bool§port: u16§endpoint: Option<String>§dev_only: bool§is_primary: bool§default: bool§system_prompt_file: Option<String>§category: Option<String>§mcp_servers: Vec<String>§skills: Vec<String>§provider: Option<String>§model: Option<String>§card: AgentCardConfig§oauth: OAuthConfigImplementations§
Source§impl DiskAgentConfig
impl DiskAgentConfig
pub fn system_prompt_file(&self) -> &str
pub fn to_agent_config( &self, base_url: &str, system_prompt: Option<String>, ) -> AgentConfig
pub fn validate(&self, dir_name: &str) -> Result<()>
Trait Implementations§
Source§impl Clone for DiskAgentConfig
impl Clone for DiskAgentConfig
Source§fn clone(&self) -> DiskAgentConfig
fn clone(&self) -> DiskAgentConfig
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 DiskAgentConfig
impl Debug for DiskAgentConfig
Source§impl<'de> Deserialize<'de> for DiskAgentConfig
impl<'de> Deserialize<'de> for DiskAgentConfig
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 DiskAgentConfig
impl RefUnwindSafe for DiskAgentConfig
impl Send for DiskAgentConfig
impl Sync for DiskAgentConfig
impl Unpin for DiskAgentConfig
impl UnsafeUnpin for DiskAgentConfig
impl UnwindSafe for DiskAgentConfig
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