Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunPhase

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

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(id:, description:, name:) ⇒ BetaManagedAgentsWorkflowRunPhase

A phase that a workflow run's plan declares.

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

Parameters:

  • id (String) —

    Unique identifier for the phase.

  • description (String, nil) —

    Description that the agent gave the phase, passed on as written, or null if it

  • name (String) —

    Name that the agent gave the phase, passed on as written.

  • id: (String)
  • description: (String, nil)
  • name: (String)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb', line 27

Instance Attribute Details

#description ⇒ String?

Description that the agent gave the phase, passed on as written, or null if it gave none.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


19
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb', line 19

required :description, String, nil?: true

#id ⇒ String

Unique identifier for the phase.

Parameters:

  • value (String)

Returns:

  • (String)


12
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb', line 12

required :id, String

#name ⇒ String

Name that the agent gave the phase, passed on as written.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rb', line 25

required :name, String

Instance Method Details

#to_hash ⇒ { id: String, description: String?, name: String }

Returns:

  • ({ id: String, description: String?, name: String })


21
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_phase.rbs', line 21

def to_hash: -> { id: String, description: String?, name: String }