Current section
Files
Jump to
Current section
Files
lib/ex_openai/generated/components/realtime_mcp_approval_request.ex
defmodule ExOpenAI.Components.RealtimeMCPApprovalRequest do
use ExOpenAI.Jason
@moduledoc """
A Realtime item requesting human approval of a tool invocation.
## Fields
* `:arguments` - **required** - `String.t()`
A JSON string of arguments for the tool.
* `:id` - **required** - `String.t()`
The unique ID of the approval request.
* `:name` - **required** - `String.t()`
The name of the tool to run.
* `:server_label` - **required** - `String.t()`
The label of the MCP server making the request.
* `:type` - **required** - `:mcp_approval_request`
The type of the item. Always `mcp_approval_request`.
Allowed values: `"mcp_approval_request"`
"""
@type t() :: %{
__struct__: __MODULE__,
arguments: String.t(),
id: String.t(),
name: String.t(),
server_label: String.t(),
type: :mcp_approval_request
}
defstruct [:arguments, :id, :name, :server_label, :type]
end