Table of Contents

Class StreamingContent

Namespace
Mythosia.AI.Models.Streaming
Assembly
Mythosia.AI.Abstractions.dll
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

AICitation

Content

The actual text content being streamed

public string? Content { get; set; }

Property Value

string

FinishReason

Normalized provider termination reason, when this event reports one.

public AIFinishReason FinishReason { get; set; }

Property Value

AIFinishReason

FunctionCall

Typed function call associated with this event, when applicable.

public FunctionCall? FunctionCall { get; set; }

Property Value

FunctionCall

FunctionCallBatchId

Identifies all calls and results that belong to the same assistant turn.

public string? FunctionCallBatchId { get; set; }

Property Value

string

FunctionResult

Typed function result associated with this event, when applicable.

public FunctionCallResult? FunctionResult { get; set; }

Property Value

FunctionCallResult

IsFinalRound

True when this event describes the final LLM round in the current stream.

public bool IsFinalRound { get; set; }

Property Value

bool

Metadata

Additional metadata about the stream

public Dictionary<string, object>? Metadata { get; set; }

Property Value

Dictionary<string, object>

RawFinishReason

Original provider termination reason or status; null if unavailable.

public string? RawFinishReason { get; set; }

Property Value

string

ResponseModel

Actual response model reported by the provider, independent of optional metadata.

public string? ResponseModel { get; set; }

Property Value

string

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

StreamingContentType

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; }

Property Value

TokenUsage