//
#nullable disable
using System.ClientModel.Primitives;
using System.Collections.Generic;
using OpenAI;
namespace OpenAI.Chat
{
public partial class AssistantChatMessage : ChatMessage
{
internal AssistantChatMessage() : this(ChatMessageRole.Assistant, null, default, null, null, null, null, null)
{
}
#pragma warning disable SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
internal AssistantChatMessage(ChatMessageRole role, ChatMessageContent content, in JsonPatch patch, string refusal, string participantName, ChatOutputAudioReference outputAudioReference, IList toolCalls, ChatFunctionCall functionCall) : base(role, content, patch)
{
// Plugin customization: ensure initialization of collections
Refusal = refusal;
ParticipantName = participantName;
OutputAudioReference = outputAudioReference;
ToolCalls = toolCalls ?? new ChangeTrackingList();
FunctionCall = functionCall;
Patch.SetPropagators(PropagateSet, PropagateGet);
}
#pragma warning restore SCME0001 // Type is for evaluation purposes only and is subject to change or removal in future updates.
public string Refusal { get; set; }
}
}