Class: Phronomy::Agent::StreamEvent
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::StreamEvent
- Defined in:
- lib/phronomy/agent.rb
Overview
Immutable event emitted by Agent async APIs.
invoke_async and stream_async share lifecycle and Tool events. Streaming additionally emits :token events.
Common event types:
:tool_call
:tool_result
:approval_required
:done
:error
:timeout
:cancelled
Streaming-only event type:
:token
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload
21 22 23 |
# File 'lib/phronomy/agent.rb', line 21 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type
21 22 23 |
# File 'lib/phronomy/agent.rb', line 21 def type @type end |