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.
329 330 331 332 333 334 |
# File 'lib/claude_agent_sdk/types.rb', line 329 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.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def session_id @session_id end |
#state ⇒ Object
Returns the value of attribute state.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def state @state end |
#uuid ⇒ Object
Returns the value of attribute uuid.
327 328 329 |
# File 'lib/claude_agent_sdk/types.rb', line 327 def uuid @uuid end |