Class: Anthropic::Models::SkillCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/anthropic/models/skill_create_params.rb,
sig/anthropic/models/skill_create_params.rbs

Overview

See Also:

  • Anthropic::Resources::Skills#create

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Anthropic

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(files:, display_name: nil, request_options: {}) ⇒ Object

Some parameter documentations has been truncated, see Anthropic::Models::SkillCreateParams for more details.

Parameters:

  • files (Array<Pathname, StringIO, IO, String, Anthropic::FilePart>)

    Files to upload for the skill.

  • display_name (String, nil) (defaults to: nil)

    Human-readable, single-line label for the Skill. Maximum 255 characters.

  • request_options (Anthropic::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/anthropic/models/skill_create_params.rb', line 27

Instance Attribute Details

#display_nameString?

Human-readable, single-line label for the Skill. Maximum 255 characters. Always set: derived from the SKILL.md frontmatter name when omitted at creation. Not unique.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


25
# File 'lib/anthropic/models/skill_create_params.rb', line 25

optional :display_name, String, nil?: true

#filesArray<Pathname, StringIO, IO, String, Anthropic::FilePart>

Files to upload for the skill.

All files must be in the same top-level directory and must include a SKILL.md file at the root of that directory.

Parameters:

  • value (::Array[Anthropic::Internal::file_input])

Returns:



17
# File 'lib/anthropic/models/skill_create_params.rb', line 17

required :files, Anthropic::Internal::Type::ArrayOf[Anthropic::Internal::Type::FileInput]

Instance Method Details

#to_hash{

Returns:

  • ({)


21
# File 'sig/anthropic/models/skill_create_params.rbs', line 21

def to_hash: -> {