Class: OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::RequireApproval::McpToolApprovalFilter

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/realtime/realtime_response_create_mcp_tool.rb

Defined Under Namespace

Classes: Always, Never

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

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

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

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

Some parameter documentations has been truncated, see Always 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/realtime/realtime_response_create_mcp_tool.rb', line 220

Instance Attribute Details

#alwaysOpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::RequireApproval::McpToolApprovalFilter::Always?

A filter object to specify which tools are allowed.



210
211
# File 'lib/openai/models/realtime/realtime_response_create_mcp_tool.rb', line 210

optional :always,
-> { OpenAI::Realtime::RealtimeResponseCreateMcpTool::RequireApproval::McpToolApprovalFilter::Always }

#neverOpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::RequireApproval::McpToolApprovalFilter::Never?

A filter object to specify which tools are allowed.



217
218
# File 'lib/openai/models/realtime/realtime_response_create_mcp_tool.rb', line 217

optional :never,
-> { OpenAI::Realtime::RealtimeResponseCreateMcpTool::RequireApproval::McpToolApprovalFilter::Never }