openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI/src/Custom/Chat/Internal/InternalChatCompletionResponseMessage.cs
25lines · modecode
| 1 | using Microsoft.TypeSpec.Generator.Customizations; |
| 2 | using System.Collections.Generic; |
| 3 | |
| 4 | namespace OpenAI.Chat; |
| 5 | |
| 6 | |
| 7 | [CodeGenType("ChatCompletionResponseMessage")] |
| 8 | [CodeGenSuppress("InternalChatCompletionResponseMessage", typeof(IEnumerable<ChatMessageContentPart>))] |
| 9 | internal 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 ChatMessageContent 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 | } |