Class: Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent
- Defined in:
- lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs
Defined Under Namespace
Modules: StopReason
Instance Attribute Summary collapse
-
#agent_name ⇒ String
Name of the agent the thread runs.
-
#id ⇒ String
Unique identifier for this event.
-
#processed_at ⇒ Time
Timestamp of the status transition.
-
#session_thread_id ⇒ String
Public sthr_ ID of the thread that went idle.
-
#stop_details ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails?
Structured information about why the thread stopped.
- #stop_reason ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionEndTurn, ...
- #type ⇒ Symbol, :"session.thread_status_idle"
Instance Method Summary collapse
-
#initialize(id:, agent_name:, processed_at:, session_thread_id:, stop_details:, stop_reason:, type: :"session.thread_status_idle") ⇒ BetaManagedAgentsSessionThreadStatusIdleEvent
constructor
A session thread has yielded and is awaiting input.
- #to_hash ⇒ { id: String, agent_name: String, processed_at: Time, session_thread_id: String, stop_details: Anthropic::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails?, stop_reason: Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent::stop_reason, type: :"session.thread_status_idle" }
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:, agent_name:, processed_at:, session_thread_id:, stop_details:, stop_reason:, type: :"session.thread_status_idle") ⇒ BetaManagedAgentsSessionThreadStatusIdleEvent
A session thread has yielded and is awaiting input. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent for more details.
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 52
|
Instance Attribute Details
#agent_name ⇒ String
Name of the agent the thread runs.
18 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 18 required :agent_name, String |
#id ⇒ String
Unique identifier for this event.
12 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 12 required :id, String |
#processed_at ⇒ Time
Timestamp of the status transition.
24 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 24 required :processed_at, Time |
#session_thread_id ⇒ String
Public sthr_ ID of the thread that went idle.
30 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 30 required :session_thread_id, String |
#stop_details ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails?
Structured information about why the thread stopped. null when there is
nothing more to report.
37 38 39 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 37 required :stop_details, -> { Anthropic::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails }, nil?: true |
#stop_reason ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionEndTurn, ...
44 45 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 44 required :stop_reason, union: -> { Anthropic::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent::StopReason } |
#type ⇒ Symbol, :"session.thread_status_idle"
50 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rb', line 50 required :type, const: :"session.thread_status_idle" |
Instance Method Details
#to_hash ⇒ { id: String, agent_name: String, processed_at: Time, session_thread_id: String, stop_details: Anthropic::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails?, stop_reason: Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent::stop_reason, type: :"session.thread_status_idle" }
41 42 43 44 45 46 47 48 49 |
# File 'sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_status_idle_event.rbs', line 41
def to_hash: -> {
id: String,
agent_name: String,
processed_at: Time,
session_thread_id: String,
stop_details: Anthropic::Beta::Sessions::BetaManagedAgentsSessionRefusalStopDetails?,
stop_reason: Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThreadStatusIdleEvent::stop_reason,
type: :"session.thread_status_idle"
}
|