openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.12

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/Streaming/StreamingChatFunctionCallUpdate.cs

31lines · modecode

1using System;
2
3namespace OpenAI.Chat;
4
5[Obsolete($"This class is obsolete. Please use {nameof(StreamingChatToolCallUpdate)} instead.")]
6[CodeGenModel("ChatCompletionStreamResponseDeltaFunctionCall")]
7public partial class StreamingChatFunctionCallUpdate
8{
9 // CUSTOM: Renamed.
10 /// <summary> The name of the function to call. </summary>
11 [CodeGenMember("Name")]
12 public string FunctionName { get; }
13
14 // CUSTOM: Renamed.
15 /// <summary>
16 /// Gets a function arguments fragment associated with this update.
17 /// </summary>
18 /// <remarks>
19 /// <para>
20 /// Each update contains only a small number of tokens. When presenting or reconstituting a full, streamed
21 /// arguments body, all <see cref="FunctionArgumentsUpdate"/> values should be combined.
22 /// </para>
23 /// <para>
24 /// As is the case for non-streaming <see cref="ChatFunctionCall.FunctionArguments"/>, the content provided
25 /// for function arguments is not guaranteed to be well-formed JSON or to contain expected data. Callers
26 /// should validate function arguments before using them.
27 /// </para>
28 /// </remarks>
29 [CodeGenMember("Arguments")]
30 public string FunctionArgumentsUpdate { get; }
31}
32