pub struct StructuredChatCompletion<'a, S> { /* private fields */ }
Expand description
A chat completion request who’s response conforms to a particular JSON schema.
All types which are structured must derive kind_openai::OpenAISchema
, as well as
serde::Deserialize
. Take a look at the docs of that trait for a better idea of how
to use it.
Trait Implementations§
Source§impl<S> OpenAIRequestProvider for StructuredChatCompletion<'_, S>where
S: OpenAISchema + for<'de> Deserialize<'de>,
impl<S> OpenAIRequestProvider for StructuredChatCompletion<'_, S>where
S: OpenAISchema + for<'de> Deserialize<'de>,
Auto Trait Implementations§
impl<'a, S> Freeze for StructuredChatCompletion<'a, S>
impl<'a, S> RefUnwindSafe for StructuredChatCompletion<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for StructuredChatCompletion<'a, S>where
S: Send,
impl<'a, S> Sync for StructuredChatCompletion<'a, S>where
S: Sync,
impl<'a, S> Unpin for StructuredChatCompletion<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for StructuredChatCompletion<'a, S>where
S: UnwindSafe,
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