pub struct PipelineExecutor { /* private fields */ }
Expand description
Pipeline executor
Implementations§
Source§impl PipelineExecutor
impl PipelineExecutor
Sourcepub fn new(config: PipelineConfig) -> Self
pub fn new(config: PipelineConfig) -> Self
Create a new pipeline executor
Sourcepub fn from_yaml_file(path: &Path) -> LangExtractResult<Self>
pub fn from_yaml_file(path: &Path) -> LangExtractResult<Self>
Load pipeline configuration from YAML file
Sourcepub async fn execute(
&self,
input_text: &str,
) -> LangExtractResult<PipelineResult>
pub async fn execute( &self, input_text: &str, ) -> LangExtractResult<PipelineResult>
Execute the entire pipeline
Auto Trait Implementations§
impl Freeze for PipelineExecutor
impl !RefUnwindSafe for PipelineExecutor
impl Send for PipelineExecutor
impl Sync for PipelineExecutor
impl Unpin for PipelineExecutor
impl !UnwindSafe for PipelineExecutor
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