Table of Contents

Class Delta

Namespace
OpenAI.Chat
Assembly
OpenAI-DotNet.dll
public sealed class Delta
Inheritance
Delta
Inherited Members

Properties

AudioOutput

If the audio output modality is requested, this object contains data about the audio response from the model.

[JsonInclude]
[JsonPropertyName("audio")]
public AudioOutput AudioOutput { get; }

Property Value

AudioOutput

Content

The contents of the message.

[JsonInclude]
[JsonPropertyName("content")]
public string Content { get; }

Property Value

string

Name

Optional, The name of the author of this message.
May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.

[JsonInclude]
[JsonPropertyName("name")]
public string Name { get; }

Property Value

string

Refusal

The refusal message generated by the model.

[JsonInclude]
[JsonPropertyName("refusal")]
public string Refusal { get; }

Property Value

string

Role

The Role of the author of this message.

[JsonInclude]
[JsonPropertyName("role")]
public Role Role { get; }

Property Value

Role

ToolCalls

The tool calls generated by the model, such as function calls.

[JsonInclude]
[JsonPropertyName("tool_calls")]
public IReadOnlyList<ToolCall> ToolCalls { get; }

Property Value

IReadOnlyList<ToolCall>

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Operators

implicit operator string(Delta)

public static implicit operator string(Delta delta)

Parameters

delta Delta

Returns

string