openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.1.0-beta.1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Streaming/StreamingChatFunctionCallUpdate.cs

34lines · modeblame

2ab1a942Jose Arriaga Maldonado1 years ago1using System;
2
58f93c8dShivangiReja2 years ago3namespace OpenAI.Chat;
9f9f2936Jose Arriaga Maldonado2 years ago4
2ab1a942Jose Arriaga Maldonado1 years ago5[Obsolete($"This class is obsolete. Please use {nameof(StreamingChatToolCallUpdate)} instead.")]
9f9f2936Jose Arriaga Maldonado2 years ago6[CodeGenModel("ChatCompletionStreamResponseDeltaFunctionCall")]
31c2ba63Jose Arriaga Maldonado1 years ago7[CodeGenSerialization(nameof(FunctionArgumentsUpdate), SerializationValueHook = nameof(SerializeFunctionArgumentsUpdateValue), DeserializationValueHook = nameof(DeserializeFunctionArgumentsUpdateValue))]
9f9f2936Jose Arriaga Maldonado2 years ago8public partial class StreamingChatFunctionCallUpdate
9{
10// CUSTOM: Renamed.
11/// <summary> The name of the function to call. </summary>
12[CodeGenMember("Name")]
13public string FunctionName { get; }
14
31c2ba63Jose Arriaga Maldonado1 years ago15// CUSTOM:
16// - Renamed.
17// - Changed type from string to BinaryData.
9f9f2936Jose Arriaga Maldonado2 years ago18/// <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 ago33public BinaryData FunctionArgumentsUpdate { get; }
9f9f2936Jose Arriaga Maldonado2 years ago34}