ResponsesAssistantMessageItemParam 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 message parameter item with the assistant role.
public class ResponsesAssistantMessageItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemParam, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesAssistantMessageItemParam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesAssistantMessageItemParam>
type ResponsesAssistantMessageItemParam = class
inherit ResponsesMessageItemParam
interface IUtf8JsonSerializable
interface IJsonModel<ResponsesAssistantMessageItemParam>
interface IPersistableModel<ResponsesAssistantMessageItemParam>
Public Class ResponsesAssistantMessageItemParam
Inherits ResponsesMessageItemParam
Implements IJsonModel(Of ResponsesAssistantMessageItemParam), IPersistableModel(Of ResponsesAssistantMessageItemParam)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ResponsesAssistantMessageItemParam() |
Initializes a new instance of ResponsesAssistantMessageItemParam for deserialization. |
| ResponsesAssistantMessageItemParam(BinaryData) |
Initializes a new instance of ResponsesAssistantMessageItemParam. |
| ResponsesAssistantMessageItemParam(ItemType, IDictionary<String,BinaryData>, ResponsesMessageRole, BinaryData) |
Initializes a new instance of ResponsesAssistantMessageItemParam. |
Properties
| Name | Description |
|---|---|
| Content |
The content associated with the message. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). <remarks> Supported types:
|
| Role |
The role associated with the message. (Inherited from ResponsesMessageItemParam) |
| SerializedAdditionalRawData | (Inherited from ItemParam) |
| Type |
Gets or sets the type. (Inherited from ItemParam) |
Methods
| Name | Description |
|---|---|
| DeserializeResponsesAssistantMessageItemParam(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |