openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
achandmsft-patch-1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs

24lines · modecode

1using System.Collections.Generic;
2
3namespace OpenAI.Chat;
4
5
6[CodeGenType("ChatCompletionResponseMessage")]
7[CodeGenSuppress("InternalChatCompletionResponseMessage", typeof(IEnumerable<ChatMessageContentPart>))]
8internal partial class InternalChatCompletionResponseMessage
9{
10 // CUSTOM: Changed type from InternalChatCompletionResponseMessageRole.
11 /// <summary> The role of the author of this message. </summary>
12 [CodeGenMember("Role")]
13 public ChatMessageRole Role { get; } = ChatMessageRole.Assistant;
14
15 // CUSTOM: Changed type from string.
16 /// <summary> The contents of the message. </summary>
17 [CodeGenMember("Content")]
18 public ChatMessageContent Content { get; }
19
20 // CUSTOM: Changed type from InternalChatCompletionResponseMessageFunctionCall.
21 /// <summary> Deprecated and replaced by `tool_calls`. The name and arguments of a function that should be called, as generated by the model. </summary>
22 [CodeGenMember("FunctionCall")]
23 public ChatFunctionCall FunctionCall { get; }
24}
25