ResponsesMessageItemParam 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 response message item, representing a role and content, as provided as client request parameters. Please note ResponsesMessageItemParam 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 ResponsesAssistantMessageItemParam, ResponsesDeveloperMessageItemParam, ResponsesSystemMessageItemParam and ResponsesUserMessageItemParam.
public class ResponsesMessageItemParam : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemParam, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemParam>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemParam>
type ResponsesMessageItemParam = class
inherit ItemParam
interface IUtf8JsonSerializable
interface IJsonModel<ResponsesMessageItemParam>
interface IPersistableModel<ResponsesMessageItemParam>
Public Class ResponsesMessageItemParam
Inherits ItemParam
Implements IJsonModel(Of ResponsesMessageItemParam), IPersistableModel(Of ResponsesMessageItemParam)
- Inheritance
- Derived
- Implements
Constructors
| Name | Description |
|---|---|
| ResponsesMessageItemParam() |
Initializes a new instance of ResponsesMessageItemParam. |
| ResponsesMessageItemParam(ItemType, IDictionary<String,BinaryData>, ResponsesMessageRole) |
Initializes a new instance of ResponsesMessageItemParam. |
Properties
| Name | Description |
|---|---|
| Role |
The role associated with the message. |
| SerializedAdditionalRawData | (Inherited from ItemParam) |
| Type |
Gets or sets the type. (Inherited from ItemParam) |
Methods
| Name | Description |
|---|---|
| DeserializeResponsesMessageItemParam(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |