Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(inference): add README for inference module

Steven Enamakela8067868163f
diff --git a/crates/openhuman-core/src/inference/README.md b/crates/openhuman-core/src/inference/README.md
index cf45dd53cb..bf8be06e26 100644
--- a/crates/openhuman-core/src/inference/README.md
+++ b/crates/openhuman-core/src/inference/README.md
@@ -33,7 +33,8 @@ compatibility aliases in `crates/openhuman-core/src/core/legacy_aliases.rs`.
| `tinyinference_llm::model::model_id_supports_vision` | Upstream capability hint used directly for local model ids when the runtime cannot return an authoritative profile. |
| `tinyinference_llm::model::effective_temperature` | Applies unsupported-model glob patterns and overrides before provider serialization. |
| `tinyinference_local::status` | Serde DTOs re-exported from `mod.rs`: `LocalAiStatus`, `LocalAiEmbeddingResult`, `LocalAiSpeechResult`, `LocalAiTtsResult`. |
-| `model_context.rs` | Known model context-window sizes (`context_window_for_model`) for pre-dispatch budgeting. |
+| `model_context.rs` | Static context-window guesses (`static_context_window_for_model`: tier aliases, cost catalog, id patterns) and `context_window_for_model`, which prefers the window a turn last resolved from the provider. |
+| `context_window.rs` | Turn context-window resolution: config override (`model_registry[].context_window`) → provider-reported (`tinyinference_llm::model::discover`, bounded + cached, corrected by overflow-learned limits) → local profile → static guess (`warn` once). Request built by `provider::factory::model_limits_request`. |
| `paths.rs` | Host-owned on-disk model artifact paths. Completion and sentiment parsing live in `tinyinference`. |
| `local/` | Local runtime manager (was `local_ai/`). See `local/README.md`. |
| `host_runtime/core.rs` | `LocalAiService` singleton (`global`). |