Represents a partial or incremental update (delta) of a [Part].
This type enables composable, streaming updates to message parts.
For example, text may be produced token-by-token, or a function call
may be emitted gradually as its arguments stream in.
Accumulation or finalization may return an error if incompatible deltas
(e.g. mismatched function IDs) are combined or invalid JSON arguments are given.
Represents a partial or incremental update (delta) of a [
Part].This type enables composable, streaming updates to message parts. For example, text may be produced token-by-token, or a function call may be emitted gradually as its arguments stream in.
Example
Rust
Error Handling
Accumulation or finalization may return an error if incompatible deltas (e.g. mismatched function IDs) are combined or invalid JSON arguments are given.