Class: Pikuri::Agent::Event::AssistantDelta

Inherits:
Data
  • Object
show all
Defined in:
lib/pikuri/agent/event.rb

Overview

Streaming fragment of an assistant Markdown content block, pulled off a RubyLLM::Chunk during a Chat#ask stream. Emitted by the per-chunk streaming block Pikuri::Agent.streaming_block builds and Pikuri::Agent#run_loop / Synthesizer.run pass to ask; empty fragments are filtered at the dispatch site.

Preview-only, same semantics as ThinkingDelta: the Assistant event emitted from after_message at the end of the round-trip is the authoritative final text; listeners that need an exact concat of fragments should consume Assistant instead. Per-round-trip ordering is guaranteed; per-modality ordering within the delta stream is best-effort.

Instance Attribute Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



101
102
103
# File 'lib/pikuri/agent/event.rb', line 101

def content
  @content
end