EstimateScanCost (llm/cost.go)

engram · internal/llm/cost.go · go · MIT
ai, tag:embed-classified

Module exposing: EstimateScanCost

// Source: https://github.com/Gentleman-Programming/engram | License: MIT | Copyright 2026 Alan Buscaglia
// Provided via justclaw.it.com; keep this notice with the code.
package llm

// ─── Token estimate constants ─────────────────────────────────────────────────

// EstimatedInputTokensPerPair is the estimated number of input tokens consumed
// per observation pair comparison call. This value was calibrated from live
// runs against claude haiku with the locked canonical prompt template.
//
// LOCKED: Do not change without updating cost warning output and design docs.
const EstimatedInputTokensPerPair = 300

// EstimatedOutputTokensPerPair is the estimated number of output tokens produced
// per observation pair comparison call. The single-line JSON verdict is compact
// by design (Rela

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key