Skip to content

ModelResponse

Namespace: E2E

public sealed class ModelResponse

Inheritance: object

View source

public const string ContentFilter = "content-filter"

The finish reason of a turn the provider refused (upstream’s content-filter).

Value: string

View source

public string? Content { get; init; }

Value: string

View source

public string? FinishReason { get; init; }

The AI SDK finish reason that matters to the agent: ContentFilter when the provider stopped the turn because it refused the request. Null for any other turn.

Value: string

View source

public string? RawFinishReason { get; init; }

The provider’s own word for the stop, such as refusal, when it sent one. Provider text: redact it before it reaches a message.

Value: string

View source

public IReadOnlyList<JsonElement> ReasoningItems { get; init; }

The reasoning of the turn that the model can take back, to replay on the next turn. Empty when the model gave none.

Value: IReadOnlyList<JsonElement>

View source

public IReadOnlyList<ModelToolCall> ToolCalls { get; init; }

Value: IReadOnlyList<ModelToolCall>

View source

public ModelUsage? Usage { get; init; }

Value: ModelUsage

View source