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.
103 104 105 106 107 108 |
# File 'lib/claude_agent_sdk/types.rb', line 103 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.
101 102 103 |
# File 'lib/claude_agent_sdk/types.rb', line 101 def event @event end |
#parent_tool_use_id ⇒ Object
Returns the value of attribute parent_tool_use_id.
101 102 103 |
# File 'lib/claude_agent_sdk/types.rb', line 101 def parent_tool_use_id @parent_tool_use_id end |
#session_id ⇒ Object
Returns the value of attribute session_id.
101 102 103 |
# File 'lib/claude_agent_sdk/types.rb', line 101 def session_id @session_id end |
#uuid ⇒ Object
Returns the value of attribute uuid.
101 102 103 |
# File 'lib/claude_agent_sdk/types.rb', line 101 def uuid @uuid end |