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
fix(web_chat): update schema and type definitions for chat functionality
Steven Enamakel6652837c88c1
diff --git a/crates/openhuman-core/src/web_chat/schemas.rs b/crates/openhuman-core/src/web_chat/schemas.rsindex cfd1ce1f3f..0bf66f4b27 100644--- a/crates/openhuman-core/src/web_chat/schemas.rs+++ b/crates/openhuman-core/src/web_chat/schemas.rs@@ -87,6 +87,10 @@ pub fn schemas(function: &str) -> ControllerSchema {"run_mode","Optional 'plan' | 'build' — start this turn with the thread already in the requested run mode, like the socket chat:start payload's run_mode. Unrecognized values are ignored.",),+ optional_string(+ "reasoning_effort",+ "Optional reasoning (thinking) effort for this thread: 'none', 'minimal', 'low', 'medium', 'high' or 'xhigh' ('off' and 'max' are aliases). 'default' clears the thread's choice back to config; omitted leaves it unchanged. Unknown values are rejected.",+ ),],outputs: vec![json_output("ack", "Acceptance payload.")],},@@ -153,6 +157,11 @@ pub fn schemas(function: &str) -> ControllerSchema {fn handle_chat(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let p = deserialize_params::<WebChatParams>(params)?;+ // Recorded before the turn starts so it reads the new choice.+ crate::agent::tinyagents::apply_requested_effort(+ &p.thread_id,+ p.reasoning_effort.as_deref(),+ )?;to_json(channel_web_chat(&p.client_id,diff --git a/crates/openhuman-core/src/web_chat/types.rs b/crates/openhuman-core/src/web_chat/types.rsindex 2433ded6e8..529a5b8d82 100644--- a/crates/openhuman-core/src/web_chat/types.rs+++ b/crates/openhuman-core/src/web_chat/types.rs@@ -177,6 +177,10 @@ pub(crate) struct WebChatParams {/// ignored (logged), not rejected.#[serde(default)]pub(super) run_mode: Option<String>,+ /// Optional reasoning effort for this thread (`agent::tinyagents::reasoning`).+ /// Omitted leaves the thread's prior choice; `"default"` clears it.+ #[serde(default)]+ pub(super) reasoning_effort: Option<String>,}#[derive(Debug, Deserialize)]