Class: ActiveAgent::Streaming::StreamChunk

Inherits:
Object
  • Object
show all
Defined in:
lib/active_agent/concerns/streaming.rb

Overview

Data object representing a chunk of streamed content.

Instance Attribute Summary collapse

Instance Attribute Details

#deltaString? (readonly)

Returns the incremental content delta for this chunk.

Returns:

  • (String, nil)

    the incremental content delta for this chunk



77
# File 'lib/active_agent/concerns/streaming.rb', line 77

class StreamChunk < Data.define(:message, :delta); end

#messageObject (readonly)

Returns the complete message object from the provider.

Returns:

  • (Object)

    the complete message object from the provider



77
# File 'lib/active_agent/concerns/streaming.rb', line 77

class StreamChunk < Data.define(:message, :delta); end