ModelResponse
Namespace: E2E
public sealed class ModelResponseInheritance: object
Fields
Section titled “Fields”ContentFilter
Section titled “ContentFilter”public const string ContentFilter = "content-filter"The finish reason of a turn the provider refused (upstream’s content-filter).
Value: string
Properties
Section titled “Properties”Content
Section titled “Content”public string? Content { get; init; }Value: string
FinishReason
Section titled “FinishReason”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
RawFinishReason
Section titled “RawFinishReason”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
ReasoningItems
Section titled “ReasoningItems”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>
ToolCalls
Section titled “ToolCalls”public IReadOnlyList<ModelToolCall> ToolCalls { get; init; }Value: IReadOnlyList<ModelToolCall>
public ModelUsage? Usage { get; init; }Value: ModelUsage