Class: Pikuri::Agent::Event::ModelSwitched

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

Overview

The agent switched to a different model mid-conversation, emitted by Pikuri::Agent#run_loop (via apply_transport!) just before the matching ContextCap for the new model. Carries the old and new ChatTransports verbatim — unformatted by design, so each chrome presents them its own way (a TUI adds ANSI off .model, a web client adds CSS). The cap rides on the paired ContextCap, not here, so Listener::TokenLog needs no awareness of this event (its existing ContextCap arm picks up the new cap); a renderer wanting “switched to X (128k)” on one line correlates the two.

Instance Attribute Summary collapse

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



211
212
213
# File 'lib/pikuri/agent/event.rb', line 211

def from
  @from
end

#toObject (readonly)

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



211
212
213
# File 'lib/pikuri/agent/event.rb', line 211

def to
  @to
end