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(rpc): document session store and rpc crate
Steven Enamakelc2ce288d4bba
diff --git a/crates/openhuman-rpc/README.md b/crates/openhuman-rpc/README.mdindex dafdd9be2a..3079041f5d 100644--- a/crates/openhuman-rpc/README.md+++ b/crates/openhuman-rpc/README.md@@ -15,27 +15,34 @@ it; the core and `openhuman-embed` do not.A request to a running core takes this path:```text- client core process- ------ ------------- app/src coreRpcClient (fetch) POST /rpc- openhuman-app core_rpc.rs --------------> axum router (build_core_http_router)- post_json_rpc + request_body |- | CoreContext::scope (serve)- | socket.io layer (if enabled)- | cors_middleware origin allowlist- | rpc_auth_middleware bearer check- | request log- v- rpc_handler- | invoke_method(state, method, params)- v (core: registry, params,- controller DomainSet gate, handler)- |- | Ok(value) -> RpcSuccess { result }- | Err(string) -> StructuredRpcError::decode- | classify_failure (Sentry)- v RpcFailure { code -32000 }- decode_response(status, body) <------------ HTTP 200 (success and failure alike)+ client core process+ ------ ------------+ app/src coreRpcClient (fetch)+ openhuman-app core_rpc.rs+ request_body + post_json_rpc+ | POST /rpc+ v+ axum router (build_core_http_router)+ CoreContext::scope added by serve+ socket.io layer if enabled+ cors_middleware origin allowlist+ rpc_auth_middleware bearer check+ request log+ |+ v+ rpc_handler+ invoke_method(state, method, params)+ | core: registry lookup, params rules,+ | DomainSet gate, controller handler+ v+ Ok(value) -> RpcSuccess { result }+ Err(string) -> StructuredRpcError::decode+ classify_failure (how loudly to report)+ RpcFailure { error.code = -32000 }+ |+ | HTTP 200 for success and failure alike+ v+ decode_response(status, body) -> Result<Value, String>```The server never interprets a method. `rpc_handler` hands the method name anddiff --git a/crates/openhuman-rpc/src/session_store/README.md b/crates/openhuman-rpc/src/session_store/README.mdindex 6bf8ac7a95..639918a7f6 100644--- a/crates/openhuman-rpc/src/session_store/README.md+++ b/crates/openhuman-rpc/src/session_store/README.md@@ -12,17 +12,22 @@ enables by itself.## How it works```text- host startup core, during a turn- ------------ -------------------- session_store::install() agent::session_store::current()- SqliteSessionStores::resolving( provider.for_agent(agent id)- context_workspace_dir) |- -> agent::session_store::install(..) v- stores_at(<current workspace>)- CoreBuilder::build() transcripts FileTranscriptLocator- provider.recover() turn_states TurnStateStore- mark_all_interrupted (turns) kv, journal open_session_stores- interrupt_orphaned_agent_runs (ledger)+ host startup+ session_store::install()+ SqliteSessionStores::resolving(context_workspace_dir)+ -> agent::session_store::install(provider)+ CoreBuilder::build()+ provider.recover()+ turn_state::store::mark_all_interrupted (turn snapshots)+ run_ledger::interrupt_orphaned_agent_runs (run ledger)++ during a turn+ agent::session_store::current()+ provider.for_agent(agent id)+ stores_at(<current workspace>)+ transcripts FileTranscriptLocator+ turn_states TurnStateStore+ kv, journal open_session_stores````install()` puts a provider into the core's process slot