openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
6b3c8b0a3d3208218dc3cbcd295502024988a956

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Generated/Models/Chat/AssistantChatMessage.cs

32lines · modecode

1// <auto-generated/>
2
3#nullable disable
4
5using System.ClientModel.Primitives;
6using System.Collections.Generic;
7using OpenAI;
8
9namespace 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