openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs
24lines · modecode
| 1 | using System.Collections.Generic; |
| 2 | |
| 3 | namespace OpenAI.Chat; |
| 4 | |
| 5 | |
| 6 | [CodeGenType("ChatCompletionResponseMessage")] |
| 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")] |
| 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 | |