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 · modepreview

using System;

namespace OpenAI.Chat;

[Obsolete($"This class is obsolete. Please use {nameof(StreamingChatToolCallUpdate)} instead.")]
[CodeGenModel("ChatCompletionStreamResponseDeltaFunctionCall")]
public partial class StreamingChatFunctionCallUpdate
{
    // CUSTOM: Renamed.
    /// <summary> The name of the function to call. </summary>
    [CodeGenMember("Name")]
    public string FunctionName { get; }

    // CUSTOM: Renamed.
    /// <summary>
    /// Gets a function arguments fragment associated with this update.
    /// </summary>
    /// <remarks>
    ///     <para>
    ///         Each update contains only a small number of tokens. When presenting or reconstituting a full, streamed
    ///         arguments body, all <see cref="FunctionArgumentsUpdate"/> values should be combined.
    ///     </para>
    ///     <para>
    ///         As is the case for non-streaming <see cref="ChatFunctionCall.FunctionArguments"/>, the content provided
    ///         for function arguments is not guaranteed to be well-formed JSON or to contain expected data. Callers
    ///         should validate function arguments before using them.
    ///     </para>
    /// </remarks>
    [CodeGenMember("Arguments")]
    public string FunctionArgumentsUpdate { get; }
}