Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsMaxWorkflowRunsWorkflowRunErrorObject

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.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(message:, type: :max_workflow_runs_error) ⇒ BetaManagedAgentsMaxWorkflowRunsWorkflowRunErrorObject

No run was created, because the session was at its limit of open workflow runs, which are runs that have not ended. Only workflow_run.error carries this type.

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

Parameters:

  • message (String) —

    Short explanation written by the server. It never contains content from the run

  • type (Symbol, :max_workflow_runs_error) (defaults to: :max_workflow_runs_error)
  • message: (String)
  • type: (:max_workflow_runs_error) (defaults to: :max_workflow_runs_error)


# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb', line 20

Instance Attribute Details

#message ⇒ String

Short explanation written by the server. It never contains content from the run or its agents.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb', line 13

required :message, String

#type ⇒ Symbol, :max_workflow_runs_error

Parameters:

  • value (:max_workflow_runs_error)

Returns:

  • (Symbol, :max_workflow_runs_error)


18
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rb', line 18

required :type, const: :max_workflow_runs_error

Instance Method Details

#to_hash ⇒ { message: String, type: :max_workflow_runs_error }

Returns:

  • ({ message: String, type: :max_workflow_runs_error })


18
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_max_workflow_runs_workflow_run_error_object.rbs', line 18

def to_hash: -> { message: String, type: :max_workflow_runs_error }