Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAPIKey = errors.New("ANTHROPIC_API_KEY environment variable not set")
Functions ¶
func EstimateDocScoutTokens ¶
EstimateDocScoutTokens returns the estimated token cost when using DocScout tools to answer question at index i. Returns 0 for out-of-range indices.
func EstimateNaiveTokens ¶
EstimateNaiveTokens returns the estimated token cost for a naive AI (no DocScout) to answer question at index i. Returns 0 for out-of-range indices.
func SavingsPct ¶
SavingsPct returns the percentage of tokens saved by using DocScout vs naive.
Types ¶
type LiveResult ¶
type LiveRunner ¶
type LiveRunner struct {
// contains filtered or unexported fields
}
func NewLiveRunner ¶
func NewLiveRunner(_ context.Context) (*LiveRunner, error)
func (*LiveRunner) MeasureQuestion ¶
func (r *LiveRunner) MeasureQuestion(ctx context.Context, idx int, question, docscoutContext, naiveContext string) (LiveResult, error)
type QuestionEstimate ¶
QuestionEstimate holds theoretical token estimates for one canonical question.
func AllEstimates ¶
func AllEstimates() []QuestionEstimate
AllEstimates returns theoretical estimates for all 12 canonical questions.
Click to show internal directories.
Click to hide internal directories.