pub struct SchemaOutputFunction { /* private fields */ }Expand description
Schema-backed output function used for tool-mode structured output.
Implementations§
Source§impl SchemaOutputFunction
impl SchemaOutputFunction
Sourcepub const fn new(schema: OutputSchema) -> Self
pub const fn new(schema: OutputSchema) -> Self
Build an output function that validates arguments against an output schema.
Trait Implementations§
Source§impl Clone for SchemaOutputFunction
impl Clone for SchemaOutputFunction
Source§fn clone(&self) -> SchemaOutputFunction
fn clone(&self) -> SchemaOutputFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl OutputFunction for SchemaOutputFunction
impl OutputFunction for SchemaOutputFunction
Source§fn definition(&self) -> OutputFunctionDefinition
fn definition(&self) -> OutputFunctionDefinition
Output function definition exposed to the model.
Source§fn call<'life0, 'async_trait>(
&'life0 self,
_context: OutputFunctionContext,
arguments: Value,
) -> Pin<Box<dyn Future<Output = OutputValidationResult<OutputValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
_context: OutputFunctionContext,
arguments: Value,
) -> Pin<Box<dyn Future<Output = OutputValidationResult<OutputValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute the output function with model-provided arguments. Read more
Auto Trait Implementations§
impl Freeze for SchemaOutputFunction
impl RefUnwindSafe for SchemaOutputFunction
impl Send for SchemaOutputFunction
impl Sync for SchemaOutputFunction
impl Unpin for SchemaOutputFunction
impl UnsafeUnpin for SchemaOutputFunction
impl UnwindSafe for SchemaOutputFunction
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