openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Generated/Models/AssistantChatMessage.cs

29lines · modecode

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