Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunStatusEndedEvent

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

A workflow run ended. Emitted once per run, as the last of the run's workflow_run.* events.

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

Parameters:



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

Instance Attribute Details

#id ⇒ String

Unique identifier for this event.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#processed_at ⇒ Time

Timestamp when this event was processed.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :processed_at, Time

#result ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsWorkflowRunResultCompleted, ...

How the run ended.



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

required :result, union: -> { Anthropic::Beta::Sessions::BetaManagedAgentsWorkflowRunResult }

#type ⇒ Symbol, :"workflow_run.status_ended"

Parameters:

  • value (:"workflow_run.status_ended")

Returns:

  • (Symbol, :"workflow_run.status_ended")


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

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

#workflow_run_id ⇒ String

Identifier of the run. The same value is on all of the run's workflow_run.* events.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :workflow_run_id, String

Instance Method Details

#to_hash ⇒ { id: String, processed_at: Time, result: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_result, type: :"workflow_run.status_ended", workflow_run_id: String }

Returns:

  • ({ id: String, processed_at: Time, result: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_result, type: :"workflow_run.status_ended", workflow_run_id: String })


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

def to_hash: -> {
  id: String,
  processed_at: Time,
  result: Anthropic::Models::Beta::Sessions::beta_managed_agents_workflow_run_result,
  type: :"workflow_run.status_ended",
  workflow_run_id: String
}