OutputItemCodeInterpreterCallBuilder Class

Definition

Scoped builder for a code interpreter tool call output item. Provides methods for the lifecycle events and streaming code deltas.

public class OutputItemCodeInterpreterCallBuilder : Azure.AI.AgentServer.Responses.OutputItemBuilder<Azure.AI.AgentServer.Responses.Models.OutputItemCodeInterpreterToolCall>
type OutputItemCodeInterpreterCallBuilder = class
    inherit OutputItemBuilder<OutputItemCodeInterpreterToolCall>
Public Class OutputItemCodeInterpreterCallBuilder
Inherits OutputItemBuilder(Of OutputItemCodeInterpreterToolCall)
Inheritance
OutputItemCodeInterpreterCallBuilder

Constructors

Name Description
OutputItemCodeInterpreterCallBuilder()

Initializes a new instance of OutputItemCodeInterpreterCallBuilder for mocking.

Properties

Name Description
ItemId

The auto-generated item ID for this output item.

(Inherited from OutputItemBuilder<T>)
OutputIndex

The output index assigned to this output item.

(Inherited from OutputItemBuilder<T>)

Methods

Name Description
Code(IAsyncEnumerable<String>, CancellationToken)

Convenience generator that yields the complete code sub-item event sequence from streaming chunks (S-053, streaming mode per S-054). Each chunk is emitted as a delta immediately (S-055).

Code(String)

Convenience generator that yields the complete code sub-item event sequence from a single string (S-053, complete-text mode per S-054).

EmitAdded()

Produces a response.output_item.added event with an in-progress code interpreter item.

EmitAdded(T)

Produces a response.output_item.added event wrapping the given item.

(Inherited from OutputItemBuilder<T>)
EmitCodeDelta(String)

Produces a response.code_interpreter_call.code.delta event with the given code chunk.

EmitCodeDone(String)

Produces a response.code_interpreter_call.code.done event with the final code.

EmitCompleted()

Produces a response.code_interpreter_call.completed event.

EmitDone()

Produces a response.output_item.done event with a completed code interpreter item.

EmitDone(T)

Produces a response.output_item.done event wrapping the given item and tracks it in the response's output list.

(Inherited from OutputItemBuilder<T>)
EmitInProgress()

Produces a response.code_interpreter_call.in_progress event.

EmitInterpreting()

Produces a response.code_interpreter_call.interpreting event.

Applies to