pub enum ModelOutputDelta {
Text(ModelStreamChunk),
Json(ModelStreamChunk),
ReasoningSummary(ModelStreamChunk),
ToolArguments(ModelStreamChunk),
}Expand description
One typed exact fragment for an already-started output item.
Variants§
Text(ModelStreamChunk)
User-visible text delta.
Json(ModelStreamChunk)
Structured-output JSON delta.
ReasoningSummary(ModelStreamChunk)
Readable reasoning-summary delta.
ToolArguments(ModelStreamChunk)
Tool-argument JSON delta.
Implementations§
Source§impl ModelOutputDelta
impl ModelOutputDelta
Sourcepub const fn kind(&self) -> ModelOutputDeltaKind
pub const fn kind(&self) -> ModelOutputDeltaKind
Returns the closed fragment classification.
Sourcepub const fn chunk(&self) -> &ModelStreamChunk
pub const fn chunk(&self) -> &ModelStreamChunk
Returns the exact bounded fragment.
Trait Implementations§
Source§impl Clone for ModelOutputDelta
impl Clone for ModelOutputDelta
Source§impl Debug for ModelOutputDelta
impl Debug for ModelOutputDelta
Source§impl<'de> Deserialize<'de> for ModelOutputDelta
impl<'de> Deserialize<'de> for ModelOutputDelta
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
impl Eq for ModelOutputDelta
Source§impl JsonSchema for ModelOutputDelta
impl JsonSchema for ModelOutputDelta
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 ModelOutputDelta
impl PartialEq for ModelOutputDelta
Source§impl Serialize for ModelOutputDelta
impl Serialize for ModelOutputDelta
impl StructuralPartialEq for ModelOutputDelta
Auto Trait Implementations§
impl Forget for ModelOutputDelta
impl Freeze for ModelOutputDelta
impl Move for ModelOutputDelta
impl RefUnwindSafe for ModelOutputDelta
impl Send for ModelOutputDelta
impl Sync for ModelOutputDelta
impl Unpin for ModelOutputDelta
impl UnsafeUnpin for ModelOutputDelta
impl UnwindSafe for ModelOutputDelta
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