Class: Pikuri::Agent::Event::ContextCap

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

Overview

Model’s resolved context-window cap. Emitted once by Pikuri::Agent#initialize immediately after ContextWindowDetector runs. Carries nil when no source produced a value (custom local model with no override and no reachable llama.cpp /props). Listeners that care —Listener::TokenLog renders ctx=<used>/<cap> when set, ctx=<used> when nil — pick the value off this event and cache it; non-caring listeners ignore.

Instance Attribute Summary collapse

Instance Attribute Details

#capObject (readonly)

Returns the value of attribute cap

Returns:

  • (Object)

    the current value of cap



169
170
171
# File 'lib/pikuri/agent/event.rb', line 169

def cap
  @cap
end