Smith::Session::IndexEntry
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(id : String, created_at : Time, updated_at : Time, first_prompt : String, message_count : Int32, name : String | Nil = nil, parent_id : String | Nil = nil, provider : String | Nil = nil, model : String | Nil = nil, usage : Smith::LLM::Usage | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
What the tokens came to, per the pricing table and any [pricing]
overrides. nil when the rate is unknown or the entry predates usage
tracking — a wrong cost figure is worse than no cost figure.
created_at
Sourcefirst_prompt
Sourceid
Sourcemessage_count
Sourcemodel
Sourceparent_id
Sourceprovider
Index files written before costs were listed have none of these; the
row shows n/a rather than guessing or breaking the list.
updated_at
Sourceusage
Source