pub struct FoundryProcessor;Expand description
Foundry/Azure OpenAI processor implementing the Processor trait.
Delegates entirely to the OpenAI processor since Azure OpenAI returns the same response format.
Trait Implementations§
Source§impl Processor for FoundryProcessor
impl Processor for FoundryProcessor
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 FoundryProcessor
impl RefUnwindSafe for FoundryProcessor
impl Send for FoundryProcessor
impl Sync for FoundryProcessor
impl Unpin for FoundryProcessor
impl UnsafeUnpin for FoundryProcessor
impl UnwindSafe for FoundryProcessor
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