Class: Phronomy::Agent::StreamEvent

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



21
22
23
# File 'lib/phronomy/agent.rb', line 21

def payload
  @payload
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



21
22
23
# File 'lib/phronomy/agent.rb', line 21

def type
  @type
end