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
docs(inference): update inference documentation
Steven Enamakel3e6605a755fa
diff --git a/crates/openhuman-core/src/flows/ops/inference_readiness.rs b/crates/openhuman-core/src/flows/ops/inference_readiness.rsindex 949e0599b5..ac0e5ce9bd 100644--- a/crates/openhuman-core/src/flows/ops/inference_readiness.rs+++ b/crates/openhuman-core/src/flows/ops/inference_readiness.rs@@ -149,8 +149,8 @@ pub(super) async fn cached_probe_inference_readiness(/// applies, so this probe checks the same route the node will actually/// dispatch to at run time. Precedence (findings A+B on this gate):///-/// 1. Node `config.model` — a managed tier or `hint:*` alias, translated via-/// [`role_for_model_tier`](crate::inference::provider::role_for_model_tier).+/// 1. Node `config.model` — a generic `hint:*` role or provider-owned model+/// alias translated through the provider-model registry./// 2. A static (non-`=`) `agent_ref` whose custom/// [`AgentRegistryEntry`](crate::agent_registry::AgentRegistryEntry)/// itself pins a `model` (e.g. `hint:reasoning`) — resolved the same waydiff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.mdindex 27d5501eb7..65a6d753c1 100644--- a/crates/openhuman-core/src/inference/README.md+++ b/crates/openhuman-core/src/inference/README.md@@ -25,7 +25,7 @@ Every caller starts with a role (`chat`, `reasoning`, `agentic`, `coding`, `visi|| role or hint:* e.g. "reasoning", "hint:coding"v- routing.rs / tiers.rs role -> provider string from config+ routing.rs role -> provider string from config| (chat_provider, reasoning_provider, ...)| provider string e.g. "openhuman", "ollama:[email protected]"v@@ -162,7 +162,7 @@ A failed provider call passes through several layers, each with one job:| 401/403 on a BYO key -> auth_error_registry::record| -> ProviderApiKeyRejected (once per episode)v- provider/error_code.rs managed errorCode present? backend owns Sentry+ registry.rs provider-owned classification metadataprovider/error_classify.rs rate-limit / upstream-unhealthy / retry-aftervfailure_copy/table.rs class -> error_type, source, retryable, copy@@ -200,7 +200,7 @@ picks the provider the same way a provider string does.| `provider/factory.rs`, [`provider/factory/`](./provider/factory/) | Provider-string grammar and model construction: `routing`, `primary_cloud`, `access_gates`, `credentials`, `managed_backend`, `local_runtime`, `cloud_slug`, `cloud_spec`, `subprocess_providers`, `discovery`, `chat_model`, `turn_model`. || `provider_model.rs`, `registry.rs` | Provider-neutral model hooks and caller adapters; hosted aliases, model defaults, pricing, and request metadata are registered by `openhuman-tinyhumans`. || `provider/openai_codex.rs` | Codex routing metadata for the `openai` slug when Codex OAuth is connected. |-| [`provider/error_code.rs`](./provider/error_code.rs), [`provider/error_classify.rs`](./provider/error_classify.rs) | Managed `errorCode` extraction and Sentry ownership; OpenHuman policy over TinyInference's classifier. |+| [`provider/error_classify.rs`](./provider/error_classify.rs), `registry.rs` | Provider-neutral retry classification and registered provider ownership metadata. || `provider/fallback_diagnostics.rs` | Explains background-role fallback when it hits a provider with no credentials. || [`provider/`](./provider/) | [`http_error.rs`](./provider/http_error.rs) (host reporter over `tinyinference_llm::failure::http`, `api_error`), `models/` (model catalog listing, local-runtime and OpenRouter entries), `factory/` (chat-model construction and cloud provider resolution). || [`provider/types.rs`](./provider/types.rs) | Host DTOs kept at product and RPC boundaries: `ChatResponse`, `ProviderDelta`, `BilledUsage`, `AGENT_TURN_MAX_OUTPUT_TOKENS`. |@@ -217,8 +217,7 @@ picks the provider the same way a provider string does.- `create_turn_chat_model*` ([`provider/factory/turn_model.rs`](./provider/factory/turn_model.rs), crate-private) build the model foran agent turn.- `provider_for_role` ([`provider/factory/routing.rs`](./provider/factory/routing.rs)) returns the configured provider string for a- role. `resolve_model_for_hint` and `role_for_model_tier` ([`provider/factory/tiers.rs`](./provider/factory/tiers.rs)) handle- `hint:*` markers.+ role. `provider_model.rs` handles generic `hint:*` workload markers and consults provider hooks for provider-owned aliases.- `probe_inference_readiness` (`provider/factory/chat_model.rs`) checks that a role can actuallyrun: it builds the model and, for the managed backend, makes one cheap completion.- `BYOK_INCOMPLETE_SENTINEL` (`provider/factory.rs`) marks a BYOK route with missing pieces.@@ -268,7 +267,7 @@ Outside JSON-RPC, `http::router()` serves `/v1/chat/completions` and `/v1/models## Events and persistenceThis domain publishes but does not subscribe; there is no `bus.rs`. `SessionExpired` comes from-[`provider/http_error.rs`](./provider/http_error.rs) and `provider/openhuman_backend_model.rs` (the managed model itself is in `openhuman-tinyhumans`).+[`provider/http_error.rs`](./provider/http_error.rs) using registered backend ownership metadata.`ProviderApiKeyRejected` comes from `provider/http_error.rs`, gated by `auth_error_registry`.There is no `store.rs`. Routing, provider and local settings persist through `config` (`config/ops/diff --git a/crates/openhuman-core/src/inference/provider/README.md b/crates/openhuman-core/src/inference/provider/README.mdindex 520f2b0ada..17917251b4 100644--- a/crates/openhuman-core/src/inference/provider/README.md+++ b/crates/openhuman-core/src/inference/provider/README.md@@ -101,7 +101,7 @@ consumers: the agent harness ([`agent/session_host/builder/factory.rs`](../../agand provider model-listing tests: error classification and model listing.- Claude Code provider tests live with the provider in[`vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/`](../../../../../vendor/tinyagents/crates/tinyagents-harness/src/providers/claude_code/).-- [`openhuman_backend_model_tests.rs`](./openhuman_backend_model_tests.rs): managed host transport; reusable provider+- [`http_error_tests.rs`](./http_error_tests.rs): generic host error handling with provider ownership from the installed classifier.builder and Codex tests live in TinyInference and TinyAgents.Local runtime chat providers (Ollama, LM Studio, MLX, oMLX, local-openai)