| | | 1 | | namespace UIBlazor.Services.Models; |
| | | 2 | | |
| | | 3 | | using System.Text.Json.Serialization; |
| | | 4 | | |
| | | 5 | | public class ChatDelta |
| | | 6 | | { |
| | | 7 | | /// <summary> |
| | | 8 | | /// The role of the message, which can be "system", "assistant", "user" or "tool" |
| | | 9 | | /// </summary> |
| | | 10 | | [JsonPropertyName("role")] |
| | 421 | 11 | | public string? Role { get; set; } |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// The content of the message with think block |
| | | 15 | | /// </summary> |
| | | 16 | | [JsonPropertyName("content")] |
| | 716 | 17 | | public string? Content { get; set; } |
| | | 18 | | |
| | | 19 | | private string? _reasoning; |
| | | 20 | | |
| | | 21 | | /// <summary> |
| | | 22 | | /// Optional. Content of message showed in think block |
| | | 23 | | /// </summary> |
| | | 24 | | [JsonPropertyName("reasoning_content")] |
| | 142 | 25 | | public string? ReasoningContent { get => _reasoning; set => _reasoning = value; } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Некоторые модели сюда пишут размышления |
| | | 29 | | /// </summary> |
| | | 30 | | [JsonPropertyName("reasoning")] |
| | 0 | 31 | | public string? Reasoning { get => _reasoning; set => _reasoning = value; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Optional. Native tools to be executed |
| | | 35 | | /// </summary> |
| | | 36 | | [JsonPropertyName("tool_calls")] |
| | 142 | 37 | | public IReadOnlyList<ToolCall>? ToolCalls { get; set; } |
| | | 38 | | } |