Class: Anthropic::Models::Beta::Organization::BetaPluginComponent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_plugin_component.rb,
sig/anthropic/models/beta/organization/beta_plugin_component.rbs

Defined Under Namespace

Modules: Type

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(description:, name:, type:) ⇒ void

Some parameter documentations has been truncated, see Anthropic::Models::Beta::Organization::BetaPluginComponent for more details.

Parameters:



# File 'lib/anthropic/models/beta/organization/beta_plugin_component.rb', line 28

Instance Attribute Details

#description ⇒ String?

What the component declares about itself; always null for MCP servers, hooks, and CLIs.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


13
# File 'lib/anthropic/models/beta/organization/beta_plugin_component.rb', line 13

required :description, String, nil?: true

#name ⇒ String

The component's name: a skill's, command's or agent's name, an MCP server's key in the manifest, the event a hook runs on, or a CLI's executable.

Parameters:

  • value (String)

Returns:

  • (String)


20
# File 'lib/anthropic/models/beta/organization/beta_plugin_component.rb', line 20

required :name, String

#type ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaPluginComponent::Type

The kind of component.

Parameters:

  • value (Anthropic::Models::Beta::Organization::BetaPluginComponent::type_)

Returns:



26
# File 'lib/anthropic/models/beta/organization/beta_plugin_component.rb', line 26

required :type, enum: -> { Anthropic::Beta::Organization::BetaPluginComponent::Type }

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


25
# File 'sig/anthropic/models/beta/organization/beta_plugin_component.rbs', line 25

def to_hash: -> {