struct

Crig::Memory::HeuristicTokenCounter

Inherits Crig::Memory::TokenCounter < Struct < Value < Object

Constructors

anthropic
Source
gemini
Source
new(bytes_per_token : Float64 = 4.0, per_message_overhead : Int32 = 4, per_attachment_tokens : Int32 = 256)
Source
openai
Source

Instance methods

bytes_per_token
Source
per_attachment_tokens
Source
per_message_overhead
Source