Skip to content

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

chore: files changed crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs

Steven Enamakel61de752e6ddb
diff --git a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
index 5d27390d11..fd2ed4f147 100644
--- a/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/orchestration/workflow_runs/engine/lifecycle.rs
@@ -12,14 +12,14 @@ use crate::agent::orchestration::parent_context::with_root_parent;
use crate::config::Config;
use tinyagents_session::run_ledger::{WorkflowRun, WorkflowRunStatus, WorkflowRunUpsert};
-use super::ops::{
- compare_and_swap_workflow_run_lifecycle, definition_by_id, get_workflow_run, workflow_store,
-};
use super::LOG_TARGET;
use super::cancel::{
WorkflowCancelSignal, cancel_signal_if_current, clear_cancel_signal, is_current_cancel_signal,
lookup_cancel_signal, register_cancel_signal, replace_cancel_signal,
};
+use super::ops::{
+ compare_and_swap_workflow_run_lifecycle, definition_by_id, get_workflow_run, workflow_store,
+};
use tinyagents_orchestration::workflow::WorkflowDefinition;
/// Start a new workflow run and return immediately.
diff --git a/crates/openhuman-core/src/agent_runs/context_breakdown.rs b/crates/openhuman-core/src/agent_runs/context_breakdown.rs
index 5e58bcc2ac..cc45d03ebc 100644
--- a/crates/openhuman-core/src/agent_runs/context_breakdown.rs
+++ b/crates/openhuman-core/src/agent_runs/context_breakdown.rs
@@ -17,10 +17,10 @@ use std::sync::Mutex;
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
-use crate::core::agent_cli::debug::DumpPromptOptions;
-use crate::core::agent_cli::debug::prompt_size::{PromptSizeReport, SectionSize, ToolSize};
use crate::config::Config;
use crate::core::Outcome;
+use crate::core::agent_cli::debug::DumpPromptOptions;
+use crate::core::agent_cli::debug::prompt_size::{PromptSizeReport, SectionSize, ToolSize};
use crate::core::runtime::DispatchCtx;
/// Default agent whose prompt is measured when the caller names none — the
diff --git a/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs b/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
index e746305663..a820a513d5 100644
--- a/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
+++ b/crates/openhuman-core/src/agent_runs/workflow_runs/mod.rs
@@ -1,9 +1,9 @@
//! Durable dynamic workflow run RPC surface.
-#[path = "../../agent/orchestration/workflow_runs/host.rs"]
-mod host;
#[path = "../../agent/orchestration/workflow_runs/engine/cancel.rs"]
mod cancel;
+#[path = "../../agent/orchestration/workflow_runs/host.rs"]
+mod host;
#[path = "../../agent/orchestration/workflow_runs/engine/lifecycle.rs"]
mod lifecycle;
const LOG_TARGET: &str = "workflow_run_engine";
diff --git a/crates/openhuman-core/src/core/agent_cli.rs b/crates/openhuman-core/src/core/agent_cli.rs
index bf4e185d5d..680168b24d 100644
--- a/crates/openhuman-core/src/core/agent_cli.rs
+++ b/crates/openhuman-core/src/core/agent_cli.rs
@@ -20,14 +20,14 @@
//! any built-in or workspace-custom agent id (e.g. `planner`,
//! `critic`).
-use anyhow::{anyhow, Result};
+use anyhow::{Result, anyhow};
use std::path::PathBuf;
-use crate::core::agent_cli::debug::prompt_size::{render_text, PromptSizeReport};
+use crate::agent_registry::host_definition::AgentDefinitionRegistry;
+use crate::core::agent_cli::debug::prompt_size::{PromptSizeReport, render_text};
use crate::core::agent_cli::debug::{
- dump_agent_prompt, dump_all_agent_prompts, write_prompt_dumps, DumpPromptOptions, DumpedPrompt,
+ DumpPromptOptions, DumpedPrompt, dump_agent_prompt, dump_all_agent_prompts, write_prompt_dumps,
};
-use crate::agent_registry::host_definition::AgentDefinitionRegistry;
pub(crate) mod debug;
@@ -297,7 +297,9 @@ fn parse_dump_all_flags(args: &[String]) -> Result<DumpAllFlags> {
i += 1;
}
"-h" | "--help" => {
- println!("Usage: openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]");
+ println!(
+ "Usage: openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]"
+ );
println!();
println!("Render every registered agent's turn-1 system prompt into <dir>.");
std::process::exit(0);
@@ -468,7 +470,10 @@ fn run_dump_prompt(args: &[String]) -> Result<()> {
// and splitting the header onto stderr the way `print_human` does
// would make `> turn.txt` drop the byte counts that give the payload
// its meaning.
- print!("{}", crate::core::agent_cli::debug::render_wire_dump(&dumped));
+ print!(
+ "{}",
+ crate::core::agent_cli::debug::render_wire_dump(&dumped)
+ );
} else if flags.json {
print_json(&dumped, flags.with_tools)?;
} else {
@@ -590,7 +595,9 @@ fn run_list(args: &[String]) -> Result<()> {
"-h" | "--help" => {
println!("Usage: openhuman agent list [--workspace <path>] [--json] [-v]");
println!();
- println!(" List every built-in agent plus any custom `<workspace>/agents/*.toml` overrides.");
+ println!(
+ " List every built-in agent plus any custom `<workspace>/agents/*.toml` overrides."
+ );
return Ok(());
}
other => return Err(anyhow!("unknown list arg: {other}")),
@@ -662,7 +669,9 @@ fn print_agent_help() {
println!();
println!("Usage:");
println!(" openhuman agent list [--workspace <path>] [--json]");
- println!(" openhuman agent dump-prompt --agent <id> [--workspace <path>] [--model <name>] [--with-tools] [--wire] [--json] [-v]");
+ println!(
+ " openhuman agent dump-prompt --agent <id> [--workspace <path>] [--model <name>] [--with-tools] [--wire] [--json] [-v]"
+ );
println!(" openhuman agent dump-all --out <dir> [--workspace <path>] [--model <name>] [-v]");
println!(" openhuman agent prompt-size [--agent <id>] [--workspace <path>] [--json] [-v]");
println!();
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 58d88fa303..2ed631a030 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 58d88fa3031060c83b8730fe9bfe340bb5209966
+Subproject commit 2ed631a030c3383b813b84013a5c4fbc86f3a186