pub struct NoOutput;Expand description
The strategy used when no output is requested: no response format, no parsing.
Trait Implementations§
impl Copy for NoOutput
Source§impl OutputHandler<()> for NoOutput
impl OutputHandler<()> for NoOutput
Source§fn response_format(&self) -> Option<ResponseFormat>
fn response_format(&self) -> Option<ResponseFormat>
The response format sent to the model.
Source§fn wants_output(&self) -> bool
fn wants_output(&self) -> bool
Whether the call must produce an output (
false only for NoOutput).Source§fn parse_complete(&self, _text: &str, _ctx: &OutputContext) -> Result<(), Error>
fn parse_complete(&self, _text: &str, _ctx: &OutputContext) -> Result<(), Error>
Parses the complete text of the final step. Read more
Source§fn parse_partial(&self, _text: &str) -> Option<JsonValue>
fn parse_partial(&self, _text: &str) -> Option<JsonValue>
Parses partial text during streaming;
None when nothing usable is
available yet.Source§fn typed_partial(&self, _value: &JsonValue) -> Option<O>
fn typed_partial(&self, _value: &JsonValue) -> Option<O>
Converts a partial JSON value into the typed output when it already
satisfies the schema.
Auto Trait Implementations§
impl Freeze for NoOutput
impl RefUnwindSafe for NoOutput
impl Send for NoOutput
impl Sync for NoOutput
impl Unpin for NoOutput
impl UnsafeUnpin for NoOutput
impl UnwindSafe for NoOutput
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