OutputItemReasoningItemBuilder Class

Definition

Scoped builder for a reasoning output item. Manages the summary part index counter and provides factory methods for creating summary part scopes. Child summary builders are auto-tracked so EmitDone() can build the final reasoning item from their accumulated state.

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

Constructors

Name Description
OutputItemReasoningItemBuilder()

Initializes a new instance of OutputItemReasoningItemBuilder 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
AddSummaryPart()

Creates a reasoning summary part scope with the next summary index. The builder is auto-tracked for inclusion in EmitDone().

EmitAdded()

Produces a response.output_item.added event with an in-progress reasoning output item.

EmitAdded(T)

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

(Inherited from OutputItemBuilder<T>)
EmitDone()

Produces a response.output_item.done event with a completed reasoning output item. The summary list is built automatically from the tracked child summary builders.

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>)
SummaryPart(IAsyncEnumerable<String>, CancellationToken)

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

SummaryPart(String)

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

Applies to