ChatRequestAssistantMessage Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for