Smith::Context::Breakdown
Inherits Reference < Object
Where the context window actually goes. Built by the caller, which is the only thing that knows what went into the system prompt.
Constructors
new(max_tokens : Int32)
SourceInstance methods
add(label : String, text : String) : Nil
Empty parts are kept: "Skills 0" answers "are skills eating my context?", a missing line leaves the question open.
add(label : String, messages : Array(LLM::Message)) : Nil
Sourceentries
Sourcemax_tokens
Sourcepercent(tokens : Int32) : Int32
Sourcetotal
Source