Class: ClaudeAgentSDK::SessionStateChangedMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::SessionStateChangedMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Session state changed system message
Instance Attribute Summary collapse
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#state ⇒ Object
Returns the value of attribute state.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, uuid: nil, session_id: nil, state: nil) ⇒ SessionStateChangedMessage
constructor
A new instance of SessionStateChangedMessage.
Constructor Details
#initialize(subtype:, data:, uuid: nil, session_id: nil, state: nil) ⇒ SessionStateChangedMessage
Returns a new instance of SessionStateChangedMessage.
350 351 352 353 354 355 |
# File 'lib/claude_agent_sdk/types.rb', line 350 def initialize(subtype:, data:, uuid: nil, session_id: nil, state: nil) super(subtype: subtype, data: data) @uuid = uuid @session_id = session_id @state = state # "idle", "running", or "requires_action" end |
Instance Attribute Details
#session_id ⇒ Object
Returns the value of attribute session_id.
348 349 350 |
# File 'lib/claude_agent_sdk/types.rb', line 348 def session_id @session_id end |
#state ⇒ Object
Returns the value of attribute state.
348 349 350 |
# File 'lib/claude_agent_sdk/types.rb', line 348 def state @state end |
#uuid ⇒ Object
Returns the value of attribute uuid.
348 349 350 |
# File 'lib/claude_agent_sdk/types.rb', line 348 def uuid @uuid end |