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(agent): clarify explicit context transition
Steven Enamakel645b96753a20
diff --git a/crates/openhuman-core/src/agent/tinyagents/README.md b/crates/openhuman-core/src/agent/tinyagents/README.mdindex 1b30f434cb..ff856645a9 100644--- a/crates/openhuman-core/src/agent/tinyagents/README.md+++ b/crates/openhuman-core/src/agent/tinyagents/README.md@@ -105,9 +105,13 @@ Responses project the crate's own `AgentObservation` and `HarnessRunStatus` serd`HostCapabilities<()>` bundle from a single session/runtime input set, while`OpenHumanRunContext` carries the explicit per-turn values (origin, progress,attachments, artifacts, dispatch, cancellation, thread, workspace and stop-hooks) into canonical `tinyagents_harness::context::RunContext`. Runtime route-cutover remains separate: the existing manual assembly shell is retained until-every caller can accept the explicit context.+hooks) across the OpenHuman turn boundary. During the current transition the+live `AgentHarness<(), ()>` bridge maps cancellation and workspace into the+canonical `tinyagents_harness::context::RunContext`; the runner consumes+origin and dispatch directly and re-establishes the context's thread and route+scopes around model execution. Generic middleware-state and remaining entrypoint+cutovers are required before those scopes and the manual assembly shell can be+deleted.## Notesdiff --git a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rsindex c411fda94e..dc6634aae3 100644--- a/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs+++ b/crates/openhuman-core/src/inference/provider/openhuman_backend_model.rs@@ -445,7 +445,7 @@ fn project_managed_usage(mut response: ModelResponse) -> ModelResponse {/// have not yet migrated to the explicit run carrier still establish this/// scope; the shared-runner cutover preserves that boundary until those routes/// pass `OpenHumanRunContext.thread_id` end-to-end.-fn with_thread_id(mut request: ModelRequest) -> ModelRequest {+fn with_thread_id(request: ModelRequest) -> ModelRequest {let Some(thread_id) = thread_context::current_thread_id() else {return request;};