Class: Phronomy::Agent::StreamEvent
- Inherits:
-
Data
- Object
- Data
- Phronomy::Agent::StreamEvent
- Defined in:
- lib/phronomy/agent.rb
Overview
Represents a single event emitted during a streaming agent invocation.
type values: :token — a content delta from the LLM (payload: { content: String }) :tool_call — the LLM requested a tool call (payload: { tool_call: Object }) :tool_result — a tool finished executing (payload: { tool_result: Object }) :done — the agent finished (payload: { output: String, messages: Array, usage: TokenUsage }) :error — an unrecoverable error occurred (payload: { error: Exception })
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
14 15 16 |
# File 'lib/phronomy/agent.rb', line 14 def payload @payload end |
#type ⇒ Object (readonly)
Returns the value of attribute type
14 15 16 |
# File 'lib/phronomy/agent.rb', line 14 def type @type end |