OutputItemMcpListToolsBuilder Class

Definition

Scoped builder for an MCP list tools output item. Provides methods for lifecycle events with success or failure terminal states.

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

Constructors

Name Description
OutputItemMcpListToolsBuilder()

Initializes a new instance of OutputItemMcpListToolsBuilder 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>)
ServerLabel

The MCP server label.

Methods

Name Description
EmitAdded()

Produces a response.output_item.added event with an MCP list tools item.

EmitAdded(T)

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

(Inherited from OutputItemBuilder<T>)
EmitCompleted()

Produces a response.mcp_list_tools.completed event and records the terminal state so that EmitDone() knows the operation succeeded (S-060).

EmitDone()

Produces a response.output_item.done event with the MCP list tools item. The Error property is not populated by this builder; callers should set it on the item if EmitFailed() was called (S-060).

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>)
EmitFailed()

Produces a response.mcp_list_tools.failed event and records the terminal state so that EmitDone() knows the operation failed (S-060).

EmitInProgress()

Produces a response.mcp_list_tools.in_progress event.

Applies to