ResponsesSystemMessageItemResource 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 resource item with the system role.
public class ResponsesSystemMessageItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemResource, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesSystemMessageItemResource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesSystemMessageItemResource>
type ResponsesSystemMessageItemResource = class
inherit ResponsesMessageItemResource
interface IUtf8JsonSerializable
interface IJsonModel<ResponsesSystemMessageItemResource>
interface IPersistableModel<ResponsesSystemMessageItemResource>
Public Class ResponsesSystemMessageItemResource
Inherits ResponsesMessageItemResource
Implements IJsonModel(Of ResponsesSystemMessageItemResource), IPersistableModel(Of ResponsesSystemMessageItemResource)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| ResponsesSystemMessageItemResource() |
Initializes a new instance of ResponsesSystemMessageItemResource for deserialization. |
| ResponsesSystemMessageItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, ResponsesMessageItemResourceStatus, ResponsesMessageRole, IReadOnlyList<ItemContent>) |
Initializes a new instance of ResponsesSystemMessageItemResource. |
| ResponsesSystemMessageItemResource(String, ResponsesMessageItemResourceStatus, IEnumerable<ItemContent>, CreatedBy) |
Initializes a new instance of ResponsesSystemMessageItemResource. |
Properties
| Name | Description |
|---|---|
| Content |
The content associated with the message. Please note ItemContent 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 ItemContentInputAudio, ItemContentInputFile, ItemContentInputImage, ItemContentInputText, ItemContentOutputAudio, ItemContentOutputText and ItemContentRefusal. |
| CreatedBy |
The information about the creator of the item. (Inherited from ItemResource) |
| Id |
Gets the id. (Inherited from ItemResource) |
| Role |
The role associated with the message. (Inherited from ResponsesMessageItemResource) |
| Status |
The status of the item. One of |
| Type |
Gets or sets the type. (Inherited from ItemResource) |
Methods
| Name | Description |
|---|---|
| DeserializeResponsesSystemMessageItemResource(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |