ChatRequestAssistantMessage Class

Definition

A request chat message representing response or action from the assistant.

public class ChatRequestAssistantMessage : Azure.AI.OpenAI.ChatRequestMessage, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.ChatRequestAssistantMessage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.ChatRequestAssistantMessage>
type ChatRequestAssistantMessage = class
    inherit ChatRequestMessage
    interface IJsonModel<ChatRequestAssistantMessage>
    interface IPersistableModel<ChatRequestAssistantMessage>
Public Class ChatRequestAssistantMessage
Inherits ChatRequestMessage
Implements IJsonModel(Of ChatRequestAssistantMessage), IPersistableModel(Of ChatRequestAssistantMessage)
Inheritance
ChatRequestAssistantMessage
Implements

Constructors

ChatRequestAssistantMessage(ChatResponseMessage)

Initializes a new instance of ChatRequestAssistantMessage from a prior ChatResponseMessage instance from the Assistant.

ChatRequestAssistantMessage(String)

Initializes a new instance of ChatRequestAssistantMessage.

Properties

Content

The content of the message.

FunctionCall

The function call that must be resolved and have its output appended to subsequent input messages for the chat completions request to resolve as configured.

Name

An optional name for the participant.

Role

The chat role associated with this message.

(Inherited from ChatRequestMessage)
ToolCalls

The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured. Please note ChatCompletionsToolCall is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ChatCompletionsFunctionToolCall.

Explicit Interface Implementations

IJsonModel<ChatRequestAssistantMessage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ChatRequestAssistantMessage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ChatRequestMessage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from ChatRequestMessage)
IJsonModel<ChatRequestMessage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ChatRequestMessage)
IPersistableModel<ChatRequestAssistantMessage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatRequestAssistantMessage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ChatRequestAssistantMessage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ChatRequestMessage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ChatRequestMessage)
IPersistableModel<ChatRequestMessage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from ChatRequestMessage)
IPersistableModel<ChatRequestMessage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ChatRequestMessage)

Applies to