Class StreamingContent
public class StreamingContent
- Inheritance
-
StreamingContent
- Inherited Members
Constructors
StreamingContent()
public StreamingContent()
Properties
Citation
A provider-supplied source reference for a response content part.
public AICitation? Citation { get; set; }
Property Value
Content
The actual text content being streamed
public string? Content { get; set; }
Property Value
FinishReason
Normalized provider termination reason, when this event reports one.
public AIFinishReason FinishReason { get; set; }
Property Value
FunctionCall
Typed function call associated with this event, when applicable.
public FunctionCall? FunctionCall { get; set; }
Property Value
FunctionCallBatchId
Identifies all calls and results that belong to the same assistant turn.
public string? FunctionCallBatchId { get; set; }
Property Value
FunctionResult
Typed function result associated with this event, when applicable.
public FunctionCallResult? FunctionResult { get; set; }
Property Value
IsFinalRound
True when this event describes the final LLM round in the current stream.
public bool IsFinalRound { get; set; }
Property Value
Metadata
Additional metadata about the stream
public Dictionary<string, object>? Metadata { get; set; }
Property Value
RawFinishReason
Original provider termination reason or status; null if unavailable.
public string? RawFinishReason { get; set; }
Property Value
ResponseModel
Actual response model reported by the provider, independent of optional metadata.
public string? ResponseModel { get; set; }
Property Value
RoundIndex
One-based LLM round index for round-scoped events.
public int? RoundIndex { get; set; }
Property Value
- int?
Type
Type of the streaming content
public StreamingContentType Type { get; set; }
Property Value
Usage
Token usage information (always populated when the provider returns usage data). RoundUsage describes one round; the final Completion contains the aggregate for the run. Do not add the final aggregate to the per-round usage again.
public TokenUsage? Usage { get; set; }