pub struct PipelineHandlerAdapter { /* private fields */ }Expand description
Adapter that wraps PipelineHandler to implement the Handler trait. Captures a registry clone for dispatching sub-tool calls.
Implementations§
Source§impl PipelineHandlerAdapter
impl PipelineHandlerAdapter
Sourcepub fn new(
steps: Vec<PipelineStep>,
registry: Arc<RwLock<HandlerRegistry>>,
) -> Self
pub fn new( steps: Vec<PipelineStep>, registry: Arc<RwLock<HandlerRegistry>>, ) -> Self
Create a new pipeline handler adapter with the given steps and registry.
Sourcepub fn from_config_steps(
config_steps: &[PipelineStep],
registry: Arc<RwLock<HandlerRegistry>>,
) -> Self
pub fn from_config_steps( config_steps: &[PipelineStep], registry: Arc<RwLock<HandlerRegistry>>, ) -> Self
Convert config steps to runtime steps.
Trait Implementations§
Source§impl Handler for PipelineHandlerAdapter
impl Handler for PipelineHandlerAdapter
Source§type Input = PipelineAdapterInput
type Input = PipelineAdapterInput
Input type for the handler
Source§type Output = PipelineAdapterOutput
type Output = PipelineAdapterOutput
Output type for the handler
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the handler with type-safe input. Read more
Source§fn input_schema() -> RootSchema
fn input_schema() -> RootSchema
Generate JSON schema for input (override for custom schemas). Read more
Source§fn output_schema() -> RootSchema
fn output_schema() -> RootSchema
Generate JSON schema for output. Read more
Auto Trait Implementations§
impl Freeze for PipelineHandlerAdapter
impl !RefUnwindSafe for PipelineHandlerAdapter
impl Send for PipelineHandlerAdapter
impl Sync for PipelineHandlerAdapter
impl Unpin for PipelineHandlerAdapter
impl !UnwindSafe for PipelineHandlerAdapter
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