Class: ClaudeAgentSDK::StatusMessage
- Inherits:
-
SystemMessage
- Object
- SystemMessage
- ClaudeAgentSDK::StatusMessage
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Status system message (compacting status, permission mode changes)
Instance Attribute Summary collapse
-
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Attributes inherited from SystemMessage
Instance Method Summary collapse
-
#initialize(subtype:, data:, uuid: nil, session_id: nil, status: nil, permission_mode: nil) ⇒ StatusMessage
constructor
A new instance of StatusMessage.
Constructor Details
#initialize(subtype:, data:, uuid: nil, session_id: nil, status: nil, permission_mode: nil) ⇒ StatusMessage
Returns a new instance of StatusMessage.
234 235 236 237 238 239 240 |
# File 'lib/claude_agent_sdk/types.rb', line 234 def initialize(subtype:, data:, uuid: nil, session_id: nil, status: nil, permission_mode: nil) super(subtype: subtype, data: data) @uuid = uuid @session_id = session_id @status = status # "compacting" or nil @permission_mode = end |
Instance Attribute Details
#permission_mode ⇒ Object
Returns the value of attribute permission_mode.
232 233 234 |
# File 'lib/claude_agent_sdk/types.rb', line 232 def @permission_mode end |
#session_id ⇒ Object
Returns the value of attribute session_id.
232 233 234 |
# File 'lib/claude_agent_sdk/types.rb', line 232 def session_id @session_id end |
#status ⇒ Object
Returns the value of attribute status.
232 233 234 |
# File 'lib/claude_agent_sdk/types.rb', line 232 def status @status end |
#uuid ⇒ Object
Returns the value of attribute uuid.
232 233 234 |
# File 'lib/claude_agent_sdk/types.rb', line 232 def uuid @uuid end |