Skip to main content

Module core

Module core 

Source
Expand description

Shared domain types for fixtures, runs, traces, and metrics, plus CoreError and judge_provider helpers for LLM-backed judges.

Re-exports§

pub use judge_provider::judge_key_candidates;
pub use judge_provider::judge_provider_from_model;
pub use judge_provider::JudgeProvider;
pub use model_pricing::annotate_run_cost;
pub use model_pricing::fmt_cost;
pub use model_pricing::fmt_tokens;
pub use model_pricing::lookup_pricing;
pub use model_pricing::prefetch_pricing;
pub use model_pricing::ModelPricing;
pub use retry::compute_backoff_ms;
pub use retry::is_retryable_status;
pub use retry::retry_policy;
pub use retry::RetryPolicy;
pub use models::*;

Modules§

judge_provider
Map a judge model id string to a JudgeProvider and discover API key environment variable names for that stack.
model_pricing
Live model pricing fetched from LiteLLM and OpenRouter public APIs (no auth required).
models
retry
Shared HTTP retry policy used by the judge evaluator and generator.