openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs
24lines · modeblame
9f9f2936Jose Arriaga Maldonado2 years ago | 1 | using System.Collections.Generic; |
| 2 | | |
| 3 | namespace OpenAI.Chat; | |
| 4 | | |
| 5 | | |
0ca4c062Jose Arriaga Maldonado1 years ago | 6 | [CodeGenType("ChatCompletionResponseMessage")] |
9f9f2936Jose Arriaga Maldonado2 years ago | 7 | [CodeGenSuppress("InternalChatCompletionResponseMessage", typeof(IEnumerable<ChatMessageContentPart>))] |
| 8 | internal 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")] | |
31c2ba63Jose Arriaga Maldonado1 years ago | 18 | public ChatMessageContent Content { get; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 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 | } |