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 streaming completion. Emitted by the per-chunk streaming block Pikuri::Agent#run_loop passes to Chat#complete when the agent’s streaming: flag is on; 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



129
130
131
# File 'lib/pikuri/agent/event.rb', line 129

def content
  @content
end