pub struct TaskAdapter { /* private fields */ }Expand description
Adapts an Input=String orchestrator into a child agent consuming AgentTask (P2-5).
Bridges two orchestrator kinds: a real agent (PlanExecuteAgent /
DeepResearchAgent, etc., Input=String) wrapped this way can be placed in a
FanOutFanIn / SequentialPipeline that dispatches AgentTask. Takes the
objective and feeds it to the inner orchestrator; when the task declares
allowed_tools, the consumer (AgentExecutor, etc.) assembles the tool list
from that allowlist — this adapter does not filter on its behalf.
Implementations§
Source§impl TaskAdapter
impl TaskAdapter
Trait Implementations§
Source§impl Orchestrator for TaskAdapter
impl Orchestrator for TaskAdapter
Source§fn run_with_context<'life0, 'life1, 'async_trait>(
&'life0 self,
task: Self::Input,
ctx: &'life1 RunContext,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn run_with_context<'life0, 'life1, 'async_trait>(
&'life0 self,
task: Self::Input,
ctx: &'life1 RunContext,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, AgentError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execution entry point carrying the run context.
Auto Trait Implementations§
impl !RefUnwindSafe for TaskAdapter
impl !UnwindSafe for TaskAdapter
impl Freeze for TaskAdapter
impl Send for TaskAdapter
impl Sync for TaskAdapter
impl Unpin for TaskAdapter
impl UnsafeUnpin for TaskAdapter
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