Trait Structured

Source
pub trait Structured: HasCapability {
    // Provided method
    fn structured_complete<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        prompt: &'life1 str,
        schema: &'life2 Value,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Provided Methods§

Source

fn structured_complete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, prompt: &'life1 str, schema: &'life2 Value, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

impl Structured for OpenAI

Source§

impl<P, C> Structured for Model<P, C>
where P: Provider + Structured, C: Structured + ?Sized + Send + Sync,