ResponseObject Constructors

Definition

Overloads

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.

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
on the model's response.
  • Rather than accessing the first item in the `output` array and
assuming it's an `assistant` message with the content generated by the model, you might consider using the `output_text` property where supported in SDKs.
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.

Applies to