Class: Silas::Event

Inherits:
Data
  • Object
show all
Defined in:
lib/silas/adapters/base.rb

Overview

Streamed event from an engine during a step. The type vocabulary is an open set — consumers must ignore unknown types. Emitted today by Engines::RubyLLM:

:message_start — once per model call (before_message)
:text_delta    — { text: } chunks as the response streams

StepRunner coalesces :text_delta into "delta.silas" notifications (see DeltaBuffer); everything else is available to custom engines/hooks.

Instance Attribute Summary collapse

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



8
9
10
# File 'lib/silas/adapters/base.rb', line 8

def payload
  @payload
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



8
9
10
# File 'lib/silas/adapters/base.rb', line 8

def type
  @type
end