pub enum DynamicRawOutput {
Label(String),
Distribution(BTreeMap<String, f64>),
Unrecognized {
shape: ResponseShape,
excerpt: String,
},
}Expand description
What a dynamic backend returned, before validation (3.3). Material that
is not a label or a distribution (a tool call, instructions, a schema, a
URL to fetch, an action) is carried as unrecognized, recorded as
invalid output and never executed.
Variants§
Trait Implementations§
Source§impl Clone for DynamicRawOutput
impl Clone for DynamicRawOutput
Source§impl Debug for DynamicRawOutput
impl Debug for DynamicRawOutput
Source§impl<'de> Deserialize<'de> for DynamicRawOutput
impl<'de> Deserialize<'de> for DynamicRawOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for DynamicRawOutput
impl JsonSchema for DynamicRawOutput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DynamicRawOutput
impl PartialEq for DynamicRawOutput
Source§impl Serialize for DynamicRawOutput
impl Serialize for DynamicRawOutput
impl StructuralPartialEq for DynamicRawOutput
Auto Trait Implementations§
impl Freeze for DynamicRawOutput
impl RefUnwindSafe for DynamicRawOutput
impl Send for DynamicRawOutput
impl Sync for DynamicRawOutput
impl Unpin for DynamicRawOutput
impl UnsafeUnpin for DynamicRawOutput
impl UnwindSafe for DynamicRawOutput
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