using Microsoft.TypeSpec.Generator.Customizations; using System; namespace OpenAI.Chat; [Obsolete($"This class is obsolete. Please use {nameof(StreamingChatToolCallUpdate)} instead.")] [CodeGenType("ChatCompletionStreamResponseDeltaFunctionCall")] [CodeGenSerialization(nameof(FunctionArgumentsUpdate), SerializationValueHook = nameof(SerializeFunctionArgumentsUpdateValue), DeserializationValueHook = nameof(DeserializeFunctionArgumentsUpdateValue))] public partial class StreamingChatFunctionCallUpdate { // CUSTOM: Renamed. /// The name of the function to call. [CodeGenMember("Name")] public string FunctionName { get; } // CUSTOM: // - Renamed. // - Changed type from string to BinaryData. /// /// Gets a function arguments fragment associated with this update. /// /// /// /// Each update contains only a small number of tokens. When presenting or reconstituting a full, streamed /// arguments body, all values should be combined. /// /// /// As is the case for non-streaming , 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. /// /// [CodeGenMember("Arguments")] public BinaryData FunctionArgumentsUpdate { get; } }