pub struct SpawnSubagentsInput {
pub tasks: Vec<SpawnSubagentTaskInput>,
pub max_concurrency: Option<usize>,
pub wait: Option<SpawnWaitMode>,
pub foreground_budget_secs: Option<u64>,
}Expand description
Provider-visible input for spawn_subagents.
Accepts either { "tasks": [ ... ] } or a single-task shorthand object
{ "task": "...", ... } during deserialization while exposing the canonical
tasks schema to providers.
Fields§
§tasks: Vec<SpawnSubagentTaskInput>§max_concurrency: Option<usize>§wait: Option<SpawnWaitMode>§foreground_budget_secs: Option<u64>Implementations§
Source§impl SpawnSubagentsInput
impl SpawnSubagentsInput
Sourcepub fn tool_spec_with(
name: impl AsRef<str>,
description: impl AsRef<str>,
) -> Result<ToolSpec, ToolBuildError>
pub fn tool_spec_with( name: impl AsRef<str>, description: impl AsRef<str>, ) -> Result<ToolSpec, ToolBuildError>
Builds a provider-neutral tool specification with an explicit identity.
Sourcepub fn tool_spec() -> Result<ToolSpec, ToolBuildError>
pub fn tool_spec() -> Result<ToolSpec, ToolBuildError>
Builds the provider-neutral tool specification for this input.
Trait Implementations§
Source§impl Clone for SpawnSubagentsInput
impl Clone for SpawnSubagentsInput
Source§impl Debug for SpawnSubagentsInput
impl Debug for SpawnSubagentsInput
Source§impl<'de> Deserialize<'de> for SpawnSubagentsInput
impl<'de> Deserialize<'de> for SpawnSubagentsInput
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 SpawnSubagentsInput
Source§impl JsonSchema for SpawnSubagentsInput
impl JsonSchema for SpawnSubagentsInput
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 moreSource§impl PartialEq for SpawnSubagentsInput
impl PartialEq for SpawnSubagentsInput
Source§impl Serialize for SpawnSubagentsInput
impl Serialize for SpawnSubagentsInput
impl StructuralPartialEq for SpawnSubagentsInput
Auto Trait Implementations§
impl Forget for SpawnSubagentsInput
impl Freeze for SpawnSubagentsInput
impl Move for SpawnSubagentsInput
impl RefUnwindSafe for SpawnSubagentsInput
impl Send for SpawnSubagentsInput
impl Sync for SpawnSubagentsInput
impl Unpin for SpawnSubagentsInput
impl UnsafeUnpin for SpawnSubagentsInput
impl UnwindSafe for SpawnSubagentsInput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.