openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
achandmsft-patch-2

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Generated/Models/Chat/AssistantChatMessage.cs

29lines · modepreview

// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using OpenAI;

namespace OpenAI.Chat
{
    public partial class AssistantChatMessage : ChatMessage
    {
        internal AssistantChatMessage() : this(null, ChatMessageRole.Assistant, null, null, null, null, null, null)
        {
        }

        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)
        {
            // Plugin customization: ensure initialization of collections
            Refusal = refusal;
            ParticipantName = participantName;
            ToolCalls = toolCalls ?? new ChangeTrackingList<ChatToolCall>();
            FunctionCall = functionCall;
            OutputAudioReference = outputAudioReference;
        }

        public string Refusal { get; set; }
    }
}