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
feat(provider, cost, skills): add missing fields to model and tool result structs
Steven Enamakel01694f15b9ab
diff --git a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rsindex 0482533135..dd6ade80fd 100644--- a/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs+++ b/crates/openhuman-core/src/inference/provider/factory/cloud_slug.rs@@ -334,6 +334,7 @@ pub(super) fn try_create_cloud_slug_chat_model_from_string_with_native_tools(temperature_unsupported_models: config.temperature_unsupported_models.as_slice(),+ extra_headers: &[],});return Some(Ok((chat, effective_model)));}diff --git a/crates/openhuman-core/src/platform/cost/catalog.rs b/crates/openhuman-core/src/platform/cost/catalog.rsindex 2bf1a26def..6fb0c99380 100644--- a/crates/openhuman-core/src/platform/cost/catalog.rs+++ b/crates/openhuman-core/src/platform/cost/catalog.rs@@ -505,6 +505,7 @@ pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents_registry::Modemax_input_tokens: Some(u64::from(price.context_window)),max_output_tokens: None,deprecation_date: None,+ release_date: None,pricing: tinyagents_harness::cost::ModelPricing {input_per_token: per_token(price.input_per_mtok_usd),output_per_token: per_token(price.output_per_mtok_usd),@@ -512,6 +513,8 @@ pub fn tinyagents_catalog_entry(price: &ModelPrice) -> tinyagents_registry::Modecache_creation_input_per_token: None,input_audio_per_token: None,output_reasoning_per_token: None,+ // The local price table is flat; context-size tiers are not modeled.+ tiers: Vec::new(),},capabilities: tinyagents_registry::ModelCapabilities {prompt_caching: price.cached_input_per_mtok_usd > 0.0,@@ -568,6 +571,7 @@ fn local_catalog_entry(model: &LocalCatalogModel) -> tinyagents_registry::ModelCmax_input_tokens: model.context_window,max_output_tokens: None,deprecation_date: None,+ release_date: None,// Local runtimes are not billed per token; leave every price unset (not// zero — `None` means "not applicable", not "free of charge").pricing: tinyagents_harness::cost::ModelPricing::default(),diff --git a/crates/openhuman-core/src/skills/types.rs b/crates/openhuman-core/src/skills/types.rsindex d4d8af816a..5ddabf94c0 100644--- a/crates/openhuman-core/src/skills/types.rs+++ b/crates/openhuman-core/src/skills/types.rs@@ -46,6 +46,9 @@ pub fn tool_result_from_mcp(result: tinymcp_bus::McpToolResult) -> ToolResult {.collect(),is_error: result.is_error,markdown_formatted: result.markdown_formatted,+ // MCP results carry no follow-up, metadata, control or error-kind+ // channels; leave the host-side defaults.+ ..ToolResult::default()}}