openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Chat/Streaming/StreamingChatFunctionCallUpdate.cs
34lines · modeblame
2ab1a942Jose Arriaga Maldonado1 years ago | 1 | using System; |
| 2 | | |
58f93c8dShivangiReja2 years ago | 3 | namespace OpenAI.Chat; |
9f9f2936Jose Arriaga Maldonado2 years ago | 4 | |
2ab1a942Jose Arriaga Maldonado1 years ago | 5 | [Obsolete($"This class is obsolete. Please use {nameof(StreamingChatToolCallUpdate)} instead.")] |
9f9f2936Jose Arriaga Maldonado2 years ago | 6 | [CodeGenModel("ChatCompletionStreamResponseDeltaFunctionCall")] |
31c2ba63Jose Arriaga Maldonado1 years ago | 7 | [CodeGenSerialization(nameof(FunctionArgumentsUpdate), SerializationValueHook = nameof(SerializeFunctionArgumentsUpdateValue), DeserializationValueHook = nameof(DeserializeFunctionArgumentsUpdateValue))] |
9f9f2936Jose Arriaga Maldonado2 years ago | 8 | public partial class StreamingChatFunctionCallUpdate |
| 9 | { | |
| 10 | // CUSTOM: Renamed. | |
| 11 | /// <summary> The name of the function to call. </summary> | |
| 12 | [CodeGenMember("Name")] | |
| 13 | public string FunctionName { get; } | |
| 14 | | |
31c2ba63Jose Arriaga Maldonado1 years ago | 15 | // CUSTOM: |
| 16 | // - Renamed. | |
| 17 | // - Changed type from string to BinaryData. | |
9f9f2936Jose Arriaga Maldonado2 years ago | 18 | /// <summary> |
| 19 | /// Gets a function arguments fragment associated with this update. | |
| 20 | /// </summary> | |
| 21 | /// <remarks> | |
| 22 | /// <para> | |
| 23 | /// Each update contains only a small number of tokens. When presenting or reconstituting a full, streamed | |
| 24 | /// arguments body, all <see cref="FunctionArgumentsUpdate"/> values should be combined. | |
| 25 | /// </para> | |
| 26 | /// <para> | |
| 27 | /// As is the case for non-streaming <see cref="ChatFunctionCall.FunctionArguments"/>, the content provided | |
| 28 | /// for function arguments is not guaranteed to be well-formed JSON or to contain expected data. Callers | |
| 29 | /// should validate function arguments before using them. | |
| 30 | /// </para> | |
| 31 | /// </remarks> | |
| 32 | [CodeGenMember("Arguments")] | |
31c2ba63Jose Arriaga Maldonado1 years ago | 33 | public BinaryData FunctionArgumentsUpdate { get; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 34 | } |