Skip to content

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

feat(cli): enable headless agent chat for inference.agent_chat

Steven Enamakelcf77978fbe35
diff --git a/crates/openhuman-core/src/core/cli.rs b/crates/openhuman-core/src/core/cli.rs
index 23a3045356..51fb661edf 100644
--- a/crates/openhuman-core/src/core/cli.rs
+++ b/crates/openhuman-core/src/core/cli.rs
@@ -416,8 +416,14 @@ fn run_call_command(args: &[String]) -> Result<()> {
.build()?;
let value = rt
.block_on(async {
+ let dispatch = DispatchCtx::process_default();
+ let dispatch = if method == "inference.agent_chat" {
+ dispatch.with_headless_agent_chat()
+ } else {
+ dispatch
+ };
invoke_method(
- DispatchCtx::process_default(),
+ dispatch,
default_state(),
&method,
params,