The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(cost): add coverage for tinyagents snapshot rows
Steven Enamakel7b2b3d089b11
diff --git a/crates/openhuman-core/src/platform/cost/catalog_tests.rs b/crates/openhuman-core/src/platform/cost/catalog_tests.rsindex 22122f44b2..b8ae089e49 100644--- a/crates/openhuman-core/src/platform/cost/catalog_tests.rs+++ b/crates/openhuman-core/src/platform/cost/catalog_tests.rs@@ -12,6 +12,34 @@ fn default_registry_entries_are_fully_populated() {}}+#[test]+fn tinyagents_snapshot_contains_all_known_rows() {+ let snapshot = tinyagents_catalog_snapshot();+ assert_eq!(snapshot.schema_version, 1);+ assert_eq!(snapshot.currency, "USD");+ assert_eq!(snapshot.unit, "token");+ assert!(snapshot.models.len() >= KNOWN_MODEL_PRICING.len());+ for price in KNOWN_MODEL_PRICING {+ let entry = snapshot+ .models+ .iter()+ .find(|m| m.provider == price.provider && m.model_id == price.model_id)+ .unwrap_or_else(|| panic!("missing {} in unified snapshot", price.model_id));+ assert_eq!(+ entry.max_input_tokens,+ Some(u64::from(price.context_window))+ );+ assert_eq!(+ entry.pricing.input_per_token,+ Some(price.input_per_mtok_usd / 1_000_000.0)+ );+ }+ assert!(snapshot+ .sources+ .iter()+ .any(|s| s.name == TINYAGENTS_CATALOG_SOURCE));+}+#[test]fn unified_catalog_overlays_local_models() {let local = vec![LocalCatalogModel {