Module: OpenAI::Models::Responses::Tool::Mcp::AllowedTools

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/responses/tool.rb

Overview

List of allowed tool names or a filter object.

See Also:

Defined Under Namespace

Classes: McpToolFilter

Constant Summary collapse

StringArray =
OpenAI::Internal::Type::ArrayOf[String]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Class Method Details

.variantsArray(Array<String>, OpenAI::Models::Responses::Tool::Mcp::AllowedTools::McpToolFilter)



# File 'lib/openai/models/responses/tool.rb', line 191

Instance Method Details

#initialize(read_only: nil, tool_names: nil) ⇒ Object

Some parameter documentations has been truncated, see McpToolFilter for more details.

A filter object to specify which tools are allowed.

Parameters:

  • read_only (Boolean) (defaults to: nil)

    Indicates whether or not a tool modifies data or is read-only. If an

  • tool_names (Array<String>) (defaults to: nil)

    List of allowed tool names.



# File 'lib/openai/models/responses/tool.rb', line 179