pub struct OpenAIProcessor;Expand description
OpenAI processor implementing the Processor trait.
Trait Implementations§
Source§impl Processor for OpenAIProcessor
impl Processor for OpenAIProcessor
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
response: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
agent: &'life1 Prompty,
response: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, InvokerError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process the raw response into a usable result.
Auto Trait Implementations§
impl Freeze for OpenAIProcessor
impl RefUnwindSafe for OpenAIProcessor
impl Send for OpenAIProcessor
impl Sync for OpenAIProcessor
impl Unpin for OpenAIProcessor
impl UnsafeUnpin for OpenAIProcessor
impl UnwindSafe for OpenAIProcessor
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