OutputItemCustomToolCallBuilder.Input Method

Definition

Overloads

Name Description
Input(String)

Convenience generator that emits a complete input as delta → done events.

Input(IAsyncEnumerable<String>, CancellationToken)

Convenience generator that streams input chunks as real-time delta events followed by a done event with the accumulated input.

Input(String)

Source:
OutputItemCustomToolCallBuilder.cs

Convenience generator that emits a complete input as delta → done events.

public System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> Input(string input);
member this.Input : string -> seq<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Iterator Function Input (input As String) As IEnumerable(Of ResponseStreamEvent)

Parameters

input
String

The complete input text.

Returns

An enumerable of ResponseStreamEvent for the input.

Applies to

Input(IAsyncEnumerable<String>, CancellationToken)

Source:
OutputItemCustomToolCallBuilder.cs

Convenience generator that streams input chunks as real-time delta events followed by a done event with the accumulated input.

public System.Collections.Generic.IAsyncEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent> Input(System.Collections.Generic.IAsyncEnumerable<string> chunks, System.Threading.CancellationToken cancellationToken = default);
member this.Input : System.Collections.Generic.IAsyncEnumerable<string> * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Azure.AI.AgentServer.Responses.Models.ResponseStreamEvent>
Public Function Input (chunks As IAsyncEnumerable(Of String), Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of ResponseStreamEvent)

Parameters

chunks
IAsyncEnumerable<String>

An async sequence of input text chunks.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

An async enumerable of ResponseStreamEvent for the input.

Applies to