ResponseEventStream.OutputItemComputerCall Method

Definition

Convenience generator that yields the complete computer tool call output-item lifecycle. Computer call outputs have no intermediate events — only output_item.added and output_item.done.

public System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> OutputItemComputerCall(string callId, Azure.AI.AgentServer.Responses.Models.ComputerAction action, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ComputerCallSafetyCheckParam> pendingSafetyChecks, Azure.AI.AgentServer.Responses.Models.ItemComputerToolCallStatus status);
member this.OutputItemComputerCall : string * Azure.AI.AgentServer.Responses.Models.ComputerAction * seq<Azure.AI.AgentServer.Responses.Models.ComputerCallSafetyCheckParam> * Azure.AI.AgentServer.Responses.Models.ItemComputerToolCallStatus -> seq<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Iterator Function OutputItemComputerCall (callId As String, action As ComputerAction, pendingSafetyChecks As IEnumerable(Of ComputerCallSafetyCheckParam), status As ItemComputerToolCallStatus) As IEnumerable(Of ResponseStreamEvent)

Parameters

callId
String

The call ID of the computer tool call.

action
ComputerAction

The computer action to perform.

pendingSafetyChecks
IEnumerable<ComputerCallSafetyCheckParam>

The safety checks that must pass before execution.

status
ItemComputerToolCallStatus

The status of the computer tool call.

Returns

An enumerable of events: output_item.addedoutput_item.done.

Applies to