pub struct ProcessProcessor { /* private fields */ }Expand description
Executes configured input and output process stages.
Implementations§
Source§impl ProcessProcessor
impl ProcessProcessor
pub fn new(config: ProcessConfig) -> ProcessProcessor
pub fn with_llm_registry(self, registry: Arc<LLMRegistry>) -> ProcessProcessor
Sourcepub fn with_stage_observer(
self,
observer: Arc<dyn ProcessStageObserver>,
) -> ProcessProcessor
pub fn with_stage_observer( self, observer: Arc<dyn ProcessStageObserver>, ) -> ProcessProcessor
Attaches a runtime observer used to instrument each process stage.
Sourcepub fn input_purpose_hint(&self) -> ProcessPurposeHint
pub fn input_purpose_hint(&self) -> ProcessPurposeHint
Returns the first meaningful purpose hint for the input pipeline.
Sourcepub fn output_purpose_hint(&self) -> ProcessPurposeHint
pub fn output_purpose_hint(&self) -> ProcessPurposeHint
Returns the first meaningful purpose hint for the output pipeline.
pub async fn process_input( &self, input: &str, ) -> Result<ProcessData, AgentError>
pub async fn process_output( &self, output: &str, input_context: &HashMap<String, Value>, ) -> Result<ProcessData, AgentError>
Trait Implementations§
Source§impl Debug for ProcessProcessor
impl Debug for ProcessProcessor
Source§impl Default for ProcessProcessor
impl Default for ProcessProcessor
Source§fn default() -> ProcessProcessor
fn default() -> ProcessProcessor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessProcessor
impl !RefUnwindSafe for ProcessProcessor
impl Send for ProcessProcessor
impl Sync for ProcessProcessor
impl Unpin for ProcessProcessor
impl UnsafeUnpin for ProcessProcessor
impl !UnwindSafe for ProcessProcessor
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> 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 moreCreates a shared type from an unshared type.