pub struct LlmInferenceHttpResponseChunkRequest {
pub binary: Option<bool>,
pub data: String,
pub end: Option<bool>,
pub error: Option<LlmInferenceHttpResponseChunkError>,
pub request_id: RequestId,
}Expand description
A response body chunk or terminal error.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§binary: Option<bool>When true, data is base64-encoded bytes. When absent or false, data is UTF-8 text.
data: StringBody byte range. UTF-8 text when binary is absent or false; base64-encoded bytes when binary is true. May be empty (e.g. when the response body is empty: send a single chunk with empty data and end=true).
end: Option<bool>When true, this is the final body chunk for the response. The runtime treats the response body as complete after receiving an end-marked chunk.
error: Option<LlmInferenceHttpResponseChunkError>Set to terminate the response with a transport-level failure. Implies end-of-stream; any further chunks for this requestId are ignored.
request_id: RequestIdMatches the requestId from the originating httpRequestStart frame.
Trait Implementations§
Source§impl Clone for LlmInferenceHttpResponseChunkRequest
impl Clone for LlmInferenceHttpResponseChunkRequest
Source§fn clone(&self) -> LlmInferenceHttpResponseChunkRequest
fn clone(&self) -> LlmInferenceHttpResponseChunkRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more