pub struct SubagentNestingPolicy {
pub platform_default: u32,
pub org_override: Option<u32>,
pub agent_override: Option<u32>,
pub platform_default_max_active_descendant_tasks: u32,
pub org_override_max_active_descendant_tasks: Option<u32>,
pub agent_override_max_active_descendant_tasks: Option<u32>,
pub platform_default_max_total_descendant_tasks: u32,
pub org_override_max_total_descendant_tasks: Option<u32>,
pub agent_override_max_total_descendant_tasks: Option<u32>,
}Expand description
Resolved subagent spawn governance policy for a tool execution context.
Fields§
§platform_default: u32§org_override: Option<u32>§agent_override: Option<u32>§platform_default_max_active_descendant_tasks: u32§org_override_max_active_descendant_tasks: Option<u32>§agent_override_max_active_descendant_tasks: Option<u32>§platform_default_max_total_descendant_tasks: u32§org_override_max_total_descendant_tasks: Option<u32>§agent_override_max_total_descendant_tasks: Option<u32>Implementations§
Source§impl SubagentNestingPolicy
impl SubagentNestingPolicy
pub fn max_subagent_depth(self) -> u32
pub fn max_active_descendant_tasks(self) -> u32
pub fn max_total_descendant_tasks(self) -> u32
pub fn with_platform_default(self, depth: u32) -> Self
pub fn with_org_override(self, depth: Option<u32>) -> Self
pub fn with_agent_override(self, depth: Option<u32>) -> Self
pub fn with_agent_task_caps_override( self, max_active: Option<u32>, max_total: Option<u32>, ) -> Self
Trait Implementations§
Source§impl Clone for SubagentNestingPolicy
impl Clone for SubagentNestingPolicy
Source§fn clone(&self) -> SubagentNestingPolicy
fn clone(&self) -> SubagentNestingPolicy
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 moreimpl Copy for SubagentNestingPolicy
Source§impl Debug for SubagentNestingPolicy
impl Debug for SubagentNestingPolicy
Source§impl Default for SubagentNestingPolicy
impl Default for SubagentNestingPolicy
impl Eq for SubagentNestingPolicy
Source§impl PartialEq for SubagentNestingPolicy
impl PartialEq for SubagentNestingPolicy
impl StructuralPartialEq for SubagentNestingPolicy
Auto Trait Implementations§
impl Freeze for SubagentNestingPolicy
impl RefUnwindSafe for SubagentNestingPolicy
impl Send for SubagentNestingPolicy
impl Sync for SubagentNestingPolicy
impl Unpin for SubagentNestingPolicy
impl UnsafeUnpin for SubagentNestingPolicy
impl UnwindSafe for SubagentNestingPolicy
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,
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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request