Class: CountTokensJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- CountTokensJob
- Defined in:
- app/jobs/count_tokens_job.rb
Overview
Refines a record’s token_count with the real Anthropic tokenizer count, replacing the local heuristic seeded during creation. Accepts any record that includes TokenEstimation and implements #tokenization_text —Messages, Snapshots, and PinnedMessages share the same pipeline.