ResponseObject Constructors
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.
Overloads
| Name | Description |
|---|---|
| ResponseObject(String, String) |
Creates a new ResponseObject with minimal required fields. |
| ResponseObject(String, DateTimeOffset, ResponseErrorInfo, ResponseIncompleteDetails, IEnumerable<OutputItem>, BinaryData, Boolean, AgentReference) |
Initializes a new instance of ResponseObject. |
ResponseObject(String, String)
- Source:
- ResponseObject.cs
Creates a new ResponseObject with minimal required fields.
public ResponseObject(string id, string model);
new Azure.AI.AgentServer.Responses.Models.ResponseObject : string * string -> Azure.AI.AgentServer.Responses.Models.ResponseObject
Public Sub New (id As String, model As String)
Parameters
- id
- String
The unique response identifier (e.g. "resp_abc123").
- model
- String
The model that generated this response (e.g. "gpt-4o").
Remarks
Defaults: CreatedAt = UtcNow, empty Output, ParallelToolCalls = false, nullable fields = null. Use property setters to customize after construction.
Applies to
ResponseObject(String, DateTimeOffset, ResponseErrorInfo, ResponseIncompleteDetails, IEnumerable<OutputItem>, BinaryData, Boolean, AgentReference)
- Source:
- ResponseObject.cs
Initializes a new instance of ResponseObject.
public ResponseObject(string id, DateTimeOffset createdAt, Azure.AI.AgentServer.Responses.Models.ResponseErrorInfo error, Azure.AI.AgentServer.Responses.Models.ResponseIncompleteDetails incompleteDetails, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.OutputItem> output, BinaryData instructions, bool parallelToolCalls, Azure.AI.AgentServer.Responses.Models.AgentReference agentReference);
new Azure.AI.AgentServer.Responses.Models.ResponseObject : string * DateTimeOffset * Azure.AI.AgentServer.Responses.Models.ResponseErrorInfo * Azure.AI.AgentServer.Responses.Models.ResponseIncompleteDetails * seq<Azure.AI.AgentServer.Responses.Models.OutputItem> * BinaryData * bool * Azure.AI.AgentServer.Responses.Models.AgentReference -> Azure.AI.AgentServer.Responses.Models.ResponseObject
Public Sub New (id As String, createdAt As DateTimeOffset, error As ResponseErrorInfo, incompleteDetails As ResponseIncompleteDetails, output As IEnumerable(Of OutputItem), instructions As BinaryData, parallelToolCalls As Boolean, agentReference As AgentReference)
Parameters
- id
- String
Unique identifier for this Response.
- createdAt
- DateTimeOffset
Unix timestamp (in seconds) of when this Response was created.
- error
- ResponseErrorInfo
- incompleteDetails
- ResponseIncompleteDetails
- output
- IEnumerable<OutputItem>
An array of content items generated by the model.
- The length and order of items in the `output` array is dependent
- Rather than accessing the first item in the `output` array and
- instructions
- BinaryData
- parallelToolCalls
- Boolean
Whether to allow the model to run tool calls in parallel.
- agentReference
- AgentReference
The agent used for this response.
Exceptions
id or output is null.