pub struct SubagentSpec {Show 22 fields
pub name: String,
pub description: String,
pub prompt: String,
pub tools: Option<Vec<String>>,
pub disallowed_tools: Vec<String>,
pub model: Option<String>,
pub color: Option<String>,
pub reasoning_effort: Option<String>,
pub permission_mode: Option<PermissionMode>,
pub skills: Vec<String>,
pub mcp_servers: Vec<SubagentMcpServer>,
pub hooks: Option<HooksConfig>,
pub background: bool,
pub max_turns: Option<usize>,
pub nickname_candidates: Vec<String>,
pub initial_prompt: Option<String>,
pub memory: Option<SubagentMemoryScope>,
pub isolation: Option<String>,
pub aliases: Vec<String>,
pub source: SubagentSource,
pub file_path: Option<PathBuf>,
pub warnings: Vec<String>,
}Fields§
§name: String§description: String§prompt: String§tools: Option<Vec<String>>§disallowed_tools: Vec<String>§model: Option<String>§color: Option<String>§reasoning_effort: Option<String>§permission_mode: Option<PermissionMode>§skills: Vec<String>§mcp_servers: Vec<SubagentMcpServer>§hooks: Option<HooksConfig>§background: bool§max_turns: Option<usize>§nickname_candidates: Vec<String>§initial_prompt: Option<String>§memory: Option<SubagentMemoryScope>§isolation: Option<String>§aliases: Vec<String>§source: SubagentSource§file_path: Option<PathBuf>§warnings: Vec<String>Implementations§
Source§impl SubagentSpec
impl SubagentSpec
pub fn is_read_only(&self) -> bool
pub fn matches_name(&self, candidate: &str) -> bool
Trait Implementations§
Source§impl Clone for SubagentSpec
impl Clone for SubagentSpec
Source§fn clone(&self) -> SubagentSpec
fn clone(&self) -> SubagentSpec
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 SubagentSpec
impl Debug for SubagentSpec
Source§impl<'de> Deserialize<'de> for SubagentSpec
impl<'de> Deserialize<'de> for SubagentSpec
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 SubagentSpec
impl JsonSchema for SubagentSpec
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 SubagentSpec
impl RefUnwindSafe for SubagentSpec
impl Send for SubagentSpec
impl Sync for SubagentSpec
impl Unpin for SubagentSpec
impl UnsafeUnpin for SubagentSpec
impl UnwindSafe for SubagentSpec
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more