Skip to content

ModelMessage

Namespace: E2E

public sealed class ModelMessage

Inheritance: object

View source

public string? Content { get; init; }

Value: string

View source

public IReadOnlyList<ModelImage>? Images { get; init; }

The images that go with a user turn, after its text. A provider sends them as the turn’s image parts; on any other role they are not sent.

Value: IReadOnlyList<ModelImage>

View source

public string? Name { get; init; }

Value: string

View source

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

The reasoning the model returned with this turn, sent back as it came: encrypted items for OpenAiResponsesModel, signed thinking blocks for AnthropicModel, thought parts for GoogleModel, the reasoningContent blocks for BedrockModel, the reasoning text as a JSON string for OpenAiCompatibleModel.

Value: IReadOnlyList<JsonElement>

View source

public required string Role { get; init; }

Value: string

View source

public string? ToolCallId { get; init; }

Value: string

View source

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

Value: IReadOnlyList<ModelToolCall>

View source