pub struct IsolatedSubAgentConfig {
pub system_prompt: String,
pub max_iterations: usize,
pub token_budget: usize,
pub tool_call_limit: usize,
pub timeout_secs: u64,
}Available on crate feature
subagent only.Expand description
Configuration for an isolated sub-agent run.
Fields§
§system_prompt: StringSystem prompt for the sub-agent.
max_iterations: usizeMaximum iterations for the ReAct loop.
token_budget: usizeToken budget for the sub-agent’s context (triggers compression when exceeded).
tool_call_limit: usizeMaximum tool calls before force-stop (0 = unlimited).
timeout_secs: u64Timeout in seconds for the entire sub-agent run.
Trait Implementations§
Source§impl Clone for IsolatedSubAgentConfig
impl Clone for IsolatedSubAgentConfig
Source§fn clone(&self) -> IsolatedSubAgentConfig
fn clone(&self) -> IsolatedSubAgentConfig
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 IsolatedSubAgentConfig
impl Debug for IsolatedSubAgentConfig
Auto Trait Implementations§
impl Freeze for IsolatedSubAgentConfig
impl RefUnwindSafe for IsolatedSubAgentConfig
impl Send for IsolatedSubAgentConfig
impl Sync for IsolatedSubAgentConfig
impl Unpin for IsolatedSubAgentConfig
impl UnsafeUnpin for IsolatedSubAgentConfig
impl UnwindSafe for IsolatedSubAgentConfig
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> 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> 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 moreSource§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