Class: ClaudeAgentSDK::StreamEvent
- Inherits:
-
Object
- Object
- ClaudeAgentSDK::StreamEvent
- Defined in:
- lib/claude_agent_sdk/types.rb
Overview
Stream event for partial message updates
Instance Attribute Summary collapse
-
#event ⇒ Object
Returns the value of attribute event.
-
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(uuid:, session_id:, event:, parent_tool_use_id: nil) ⇒ StreamEvent
constructor
A new instance of StreamEvent.
Constructor Details
#initialize(uuid:, session_id:, event:, parent_tool_use_id: nil) ⇒ StreamEvent
Returns a new instance of StreamEvent.
478 479 480 481 482 483 |
# File 'lib/claude_agent_sdk/types.rb', line 478 def initialize(uuid:, session_id:, event:, parent_tool_use_id: nil) @uuid = uuid @session_id = session_id @event = event @parent_tool_use_id = parent_tool_use_id end |
Instance Attribute Details
#event ⇒ Object
Returns the value of attribute event.
476 477 478 |
# File 'lib/claude_agent_sdk/types.rb', line 476 def event @event end |
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
476 477 478 |
# File 'lib/claude_agent_sdk/types.rb', line 476 def parent_tool_use_id @parent_tool_use_id end |
#session_id ⇒ Object
Returns the value of attribute session_id.
476 477 478 |
# File 'lib/claude_agent_sdk/types.rb', line 476 def session_id @session_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
476 477 478 |
# File 'lib/claude_agent_sdk/types.rb', line 476 def uuid @uuid end |