View Source ExOpenAI.Components.ToolChoiceMCP (ex_openai.ex v2.0.0-beta2)

Use this option to force the model to call a specific tool on a remote MCP server.

Fields

  • :name - optional - String.t() | any()

  • :server_label - required - String.t()
    The label of the MCP server to use.

  • :type - required - :mcp
    For MCP tools, the type is always mcp.
    Allowed values: "mcp"

Summary

Types

@type t() :: %ExOpenAI.Components.ToolChoiceMCP{
  name: (String.t() | any()) | nil,
  server_label: String.t(),
  type: :mcp
}