pub struct LocalAgentConfig {
pub id: String,
pub name: Option<String>,
pub description: Option<String>,
pub model: Option<String>,
pub system_prompt: String,
pub max_rounds: Option<usize>,
pub tool_execution_mode: ToolExecutionModeConfig,
pub behavior_ids: Vec<String>,
pub stop_condition_specs: Vec<StopConditionSpec>,
}Fields§
§id: String§name: Option<String>§description: Option<String>§model: Option<String>§system_prompt: String§max_rounds: Option<usize>§tool_execution_mode: ToolExecutionModeConfig§behavior_ids: Vec<String>§stop_condition_specs: Vec<StopConditionSpec>Implementations§
Source§impl LocalAgentConfig
impl LocalAgentConfig
pub fn into_spec(self) -> Result<AgentDefinitionSpec, AgentConfigError>
Trait Implementations§
Source§impl Clone for LocalAgentConfig
impl Clone for LocalAgentConfig
Source§fn clone(&self) -> LocalAgentConfig
fn clone(&self) -> LocalAgentConfig
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 LocalAgentConfig
impl Debug for LocalAgentConfig
Source§impl<'de> Deserialize<'de> for LocalAgentConfig
impl<'de> Deserialize<'de> for LocalAgentConfig
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 LocalAgentConfig
impl JsonSchema for LocalAgentConfig
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 moreAuto Trait Implementations§
impl Freeze for LocalAgentConfig
impl RefUnwindSafe for LocalAgentConfig
impl Send for LocalAgentConfig
impl Sync for LocalAgentConfig
impl Unpin for LocalAgentConfig
impl UnwindSafe for LocalAgentConfig
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