OutputItemBuilder<T> Class

Definition

Base class for output item builders. Provides common fields, properties, and EmitAdded(T) / EmitDone(T) methods that handle event construction and output tracking. Can also be used directly for output item types that have no streaming sub-events (no deltas, no status transitions).

public class OutputItemBuilder<T> where T : OutputItem
type OutputItemBuilder<'T (requires 'T :> OutputItem)> = class
Public Class OutputItemBuilder(Of T)

Type Parameters

T

The concrete OutputItem subtype this builder handles.

Inheritance
OutputItemBuilder<T>
Derived

Constructors

Name Description
OutputItemBuilder<T>()

Initializes a new instance of OutputItemBuilder<T> for mocking.

Properties

Name Description
ItemId

The auto-generated item ID for this output item.

OutputIndex

The output index assigned to this output item.

Methods

Name Description
EmitAdded(T)

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

EmitDone(T)

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

Applies to