pub struct SequentialAgent { /* private fields */ }Expand description
Run sub-agents in declared order.
Implementations§
Trait Implementations§
Source§impl BaseAgent for SequentialAgent
impl BaseAgent for SequentialAgent
Source§fn name(&self) -> &str
fn name(&self) -> &str
The agent’s name. Must be a valid identifier and unique within an
agent tree; the runner addresses agents by name for transfer.
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description (shown to the model — keep it short
and informative; the LLM uses it to decide whether to delegate).
Source§fn sub_agents(&self) -> &[Arc<dyn BaseAgent>]
fn sub_agents(&self) -> &[Arc<dyn BaseAgent>]
Direct sub-agents (children in the agent tree).
Source§fn run<'async_trait>(
self: Arc<Self>,
ctx: Arc<InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<EventStream<'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
fn run<'async_trait>(
self: Arc<Self>,
ctx: Arc<InvocationContext>,
) -> Pin<Box<dyn Future<Output = Result<EventStream<'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
Run the agent within the given invocation context. Emits a stream of
events. The stream terminates when the agent has produced its final
response (or errors out).
Auto Trait Implementations§
impl !RefUnwindSafe for SequentialAgent
impl !UnwindSafe for SequentialAgent
impl Freeze for SequentialAgent
impl Send for SequentialAgent
impl Sync for SequentialAgent
impl Unpin for SequentialAgent
impl UnsafeUnpin for SequentialAgent
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> 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