class

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)
Source

Instance 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.

Source
add(label : String, messages : Array(LLM::Message)) : Nil
Source
entries
Source
max_tokens
Source
percent(tokens : Int32) : Int32
Source
total
Source

Nested types