Skip to content

LanguageModelV4StreamPart

Namespace: E2E.Decision.Sdk

public sealed class LanguageModelV4StreamPart

The AI SDK’s LanguageModelV4StreamPart (language-model-v4-stream-part.ts) of the Gateway. The Gateway passes each part through z.any(), so Json is the part as the Gateway sent it, unvalidated.

Inheritance: object

View source

public required JsonElement Json { get; init; }

The part as the Gateway sent it. A response-metadata timestamp is still its ISO string here.

Value: JsonElement

public DateTimeOffset? Timestamp { get; init; }

The timestamp of a response-metadata part whose timestamp the Gateway sent as a string (upstream’s Date).

Value: DateTimeOffset?

public required string Type { get; init; }

The type of the part, such as text-delta, finish, or raw; empty when the part has none.

Value: string

public IReadOnlyList<SharedV4Warning>? Warnings { get; init; }

The warnings of a stream-start part.

Value: IReadOnlyList<SharedV4Warning>