Class: OpenAI::Models::Admin::Organization::Projects::ProjectHostedToolPermissions::Mcp

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/admin/organization/projects/project_hosted_tool_permissions.rb,
sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Projects::ProjectHostedToolPermissions#mcp

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

#initializeMcp

Returns a new instance of Mcp.

Parameters:



79
# File 'sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs', line 79

def initialize: (enabled: bool) -> void

Instance Attribute Details

#enabledBoolean

Whether the hosted tool is enabled for the project.

Parameters:

Returns:



105
# File 'lib/openai/models/admin/organization/projects/project_hosted_tool_permissions.rb', line 105

required :enabled, OpenAI::Internal::Type::Boolean

Instance Method Details

#to_hash{ enabled: bool }

Returns:

  • ({ enabled: bool })


81
# File 'sig/openai/models/admin/organization/projects/project_hosted_tool_permissions.rbs', line 81

def to_hash: -> { enabled: bool }