OutputItemFunctionCallBuilder Class

Definition

Scoped builder for a function call output item. Provides methods for the function call event lifecycle: added, arguments delta/done, and done events.

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

Constructors

Name Description
OutputItemFunctionCallBuilder()

Initializes a new instance of OutputItemFunctionCallBuilder for mocking.

Properties

Name Description
CallId

The call ID.

ItemId

The auto-generated item ID for this output item.

(Inherited from OutputItemBuilder<T>)
Name

The function name.

OutputIndex

The output index assigned to this output item.

(Inherited from OutputItemBuilder<T>)

Methods

Name Description
Arguments(IAsyncEnumerable<String>, CancellationToken)

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

Arguments(String)

Convenience generator that yields the complete arguments 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 a function call output item.

EmitAdded(T)

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

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

Produces a response.function_call_arguments.delta event with the given argument chunk.

EmitArgumentsDone(String)

Produces a response.function_call_arguments.done event with the complete arguments.

EmitDone()

Produces a response.output_item.done event with the completed function call output 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>)

Applies to