pub struct LlmInferenceHttpRequestChunkRequest {
pub agent_invocation_id: Option<String>,
pub binary: Option<bool>,
pub cancel: Option<bool>,
pub cancel_reason: Option<String>,
pub data: String,
pub end: Option<bool>,
pub request_id: RequestId,
}Expand description
A request body chunk or cancellation signal.
Fields§
§agent_invocation_id: Option<String>Identity of the agent invocation (one agentic loop) this body chunk belongs to, matching the agentInvocationId semantics on httpRequestStart. Carried per chunk so a persistent transport can attribute successive turns correctly: when a WebSocket connection is reused across turns, the httpRequestStart identity reflects only the turn that opened the connection, so each later turn stamps its own invocation id here. Absent when the runtime has no invocation context for the request, or on the plain-HTTP transport where every request has its own httpRequestStart.
binary: Option<bool>When true, data is base64-encoded bytes. When absent or false, data is UTF-8 text.
cancel: Option<bool>When true, the runtime is cancelling the in-flight request (e.g. upstream consumer aborted). data is ignored. Implies end-of-request.
cancel_reason: Option<String>Optional human-readable reason for the cancellation, propagated for logging.
data: StringBody byte range. UTF-8 text when binary is absent or false; base64-encoded bytes when binary is true. May be empty.
end: Option<bool>When true, this is the final body chunk for the request. The SDK may rely on having received an end-marked chunk before treating the request body as complete.
request_id: RequestIdMatches the requestId from the originating httpRequestStart frame.
Trait Implementations§
Source§impl Clone for LlmInferenceHttpRequestChunkRequest
impl Clone for LlmInferenceHttpRequestChunkRequest
Source§fn clone(&self) -> LlmInferenceHttpRequestChunkRequest
fn clone(&self) -> LlmInferenceHttpRequestChunkRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more