pub struct SubagentDefinition {
pub agent_type: String,
pub description: String,
pub tools: Vec<String>,
pub model: Option<String>,
pub system_prompt: Option<String>,
pub permission_mode: SubagentPermissionMode,
pub max_turns: Option<u32>,
pub max_result_chars: Option<usize>,
}Fields§
§agent_type: String§description: String§tools: Vec<String>§model: Option<String>§system_prompt: Option<String>§permission_mode: SubagentPermissionMode§max_turns: Option<u32>§max_result_chars: Option<usize>Trait Implementations§
Source§impl Clone for SubagentDefinition
impl Clone for SubagentDefinition
Source§fn clone(&self) -> SubagentDefinition
fn clone(&self) -> SubagentDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubagentDefinition
impl Debug for SubagentDefinition
Source§impl<'de> Deserialize<'de> for SubagentDefinition
impl<'de> Deserialize<'de> for SubagentDefinition
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
impl Eq for SubagentDefinition
Source§impl PartialEq for SubagentDefinition
impl PartialEq for SubagentDefinition
Source§fn eq(&self, other: &SubagentDefinition) -> bool
fn eq(&self, other: &SubagentDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubagentDefinition
impl Serialize for SubagentDefinition
impl StructuralPartialEq for SubagentDefinition
Auto Trait Implementations§
impl Freeze for SubagentDefinition
impl RefUnwindSafe for SubagentDefinition
impl Send for SubagentDefinition
impl Sync for SubagentDefinition
impl Unpin for SubagentDefinition
impl UnsafeUnpin for SubagentDefinition
impl UnwindSafe for SubagentDefinition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.