openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/AssistantChatMessage.cs
29lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | using System.Collections.Generic; |
| 7 | using OpenAI; |
| 8 | |
| 9 | namespace OpenAI.Chat |
| 10 | { |
| 11 | public partial class AssistantChatMessage : ChatMessage |
| 12 | { |
| 13 | internal AssistantChatMessage() : this(null, ChatMessageRole.Assistant, null, null, null, null, null, null) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | internal AssistantChatMessage(ChatMessageContent content, ChatMessageRole role, IDictionary<string, BinaryData> additionalBinaryDataProperties, string refusal, string participantName, IList<ChatToolCall> toolCalls, ChatFunctionCall functionCall, ChatOutputAudioReference outputAudioReference) : base(content, role, additionalBinaryDataProperties) |
| 18 | { |
| 19 | // Plugin customization: ensure initialization of collections |
| 20 | Refusal = refusal; |
| 21 | ParticipantName = participantName; |
| 22 | ToolCalls = toolCalls ?? new ChangeTrackingList<ChatToolCall>(); |
| 23 | FunctionCall = functionCall; |
| 24 | OutputAudioReference = outputAudioReference; |
| 25 | } |
| 26 | |
| 27 | public string Refusal { get; set; } |
| 28 | } |
| 29 | } |
| 30 | |