Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunErrorEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.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:, error:, processed_at:, workflow_run_id:, type: :"workflow_run.error") ⇒ BetaManagedAgentsWorkflowRunErrorEvent

A workflow run met an error, or an error kept a run from being created. A run that ends with a result.type of error emits this event before its workflow_run.status_ended, with the same error.

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

Parameters:



# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb', line 38

Instance Attribute Details

#error ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsTimeoutWorkflowRunErrorObject, ...

Why the run did not finish, or was not created.



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

required :error, union: -> { Anthropic::Beta::Sessions::BetaManagedAgentsWorkflowRunErrorObject }

#id ⇒ String

Unique identifier for this event.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#processed_at ⇒ Time

Timestamp when this event was processed.

Parameters:

  • value (Time)

Returns:

  • (Time)


24
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb', line 24

required :processed_at, Time

#type ⇒ Symbol, :"workflow_run.error"

Parameters:

  • value (:"workflow_run.error")

Returns:

  • (Symbol, :"workflow_run.error")


29
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb', line 29

required :type, const: :"workflow_run.error"

#workflow_run_id ⇒ String?

Identifier of the run that met the error, or null when the error kept a run from being created.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


36
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rb', line 36

required :workflow_run_id, String, nil?: true

Instance Method Details

#to_hash ⇒ { id: String, error: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_error_object, processed_at: Time, type: :"workflow_run.error", workflow_run_id: String? }

Returns:

  • ({ id: String, error: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_error_object, processed_at: Time, type: :"workflow_run.error", workflow_run_id: String? })


33
34
35
36
37
38
39
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_workflow_run_error_event.rbs', line 33

def to_hash: -> {
  id: String,
  error: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_error_object,
  processed_at: Time,
  type: :"workflow_run.error",
  workflow_run_id: String?
}