Class: Pikuri::Agent::Event::ContextCap
- Inherits:
-
Data
- Object
- Data
- Pikuri::Agent::Event::ContextCap
- Defined in:
- lib/pikuri/agent/event.rb
Overview
Model’s resolved context-window cap. Emitted at construction by Pikuri::Agent#initialize, and again after every model switch (see Pikuri::Agent#run_loop‘s transport:) since the cap is a property of the model. Carries nil when no source produced a value (a non-llama server with no explicit cap). 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. A second ContextCap simply overwrites the first; the conversation is not re-baselined (a switch keeps the running context size).
Instance Attribute Summary collapse
-
#cap ⇒ Object
readonly
Returns the value of attribute cap.
Instance Attribute Details
#cap ⇒ Object (readonly)
Returns the value of attribute cap
199 200 201 |
# File 'lib/pikuri/agent/event.rb', line 199 def cap @cap end |