openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/Chat/AssistantChatMessage.cs
32lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System.ClientModel.Primitives; |
| 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(ChatMessageRole.Assistant, null, default, null, null, null, null, null) |
| 14 | { |
| 15 | } |
| 16 | |
| 17 | #pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 18 | internal AssistantChatMessage(ChatMessageRole role, ChatMessageContent content, in JsonPatch patch, string refusal, string participantName, ChatOutputAudioReference outputAudioReference, IList<ChatToolCall> toolCalls, ChatFunctionCall functionCall) : base(role, content, patch) |
| 19 | { |
| 20 | // Plugin customization: ensure initialization of collections |
| 21 | Refusal = refusal; |
| 22 | ParticipantName = participantName; |
| 23 | OutputAudioReference = outputAudioReference; |
| 24 | ToolCalls = toolCalls ?? new ChangeTrackingList<ChatToolCall>(); |
| 25 | FunctionCall = functionCall; |
| 26 | Patch.SetPropagators(PropagateSet, PropagateGet); |
| 27 | } |
| 28 | #pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates. |
| 29 | |
| 30 | public string Refusal { get; set; } |
| 31 | } |
| 32 | } |
| 33 | |