openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.12

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs

25lines · modecode

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