Skip to content

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

feat(core): add thread goal, todo item, and run mode to wire schema

Steven Enamakel9aafae0c1900
diff --git a/crates/openhuman-cli/Cargo.toml b/crates/openhuman-cli/Cargo.toml
index 2fc3365800..9aaf12f6bb 100644
--- a/crates/openhuman-cli/Cargo.toml
+++ b/crates/openhuman-cli/Cargo.toml
@@ -390,8 +390,8 @@ hex = "0.4"
parking_lot = "0.12"
sha2 = "0.10"
tar = "0.4"
-tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", features = ["sqlite", "storage-drivers"] }
-tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", features = ["sqlite", "multimodal"] }
+tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", features = ["sqlite", "storage-drivers", "json-schema"] }
+tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", features = ["sqlite", "multimodal", "json-schema"] }
tinyagents-definition = { path = "../../vendor/tinyagents/crates/tinyagents-definition" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session" }
tinydocs-bus = { path = "../../vendor/tinydocs/crates/tinydocs-bus" }
diff --git a/crates/openhuman-core/Cargo.toml b/crates/openhuman-core/Cargo.toml
index 428b582cf1..708a1276b4 100644
--- a/crates/openhuman-core/Cargo.toml
+++ b/crates/openhuman-core/Cargo.toml
@@ -145,6 +145,7 @@ tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness
"sqlite",
"multimodal",
"builtin-tools",
+ "json-schema",
] }
tinybox-bus = { path = "../../vendor/tinybox/crates/tinybox-bus", features = ["storage"] }
tiny-artifacts = { path = "../../vendor/tiny-artifacts/crates/tiny-artifacts" }
@@ -157,6 +158,7 @@ tinyagents-live = { path = "../../vendor/tinyagents/crates/tinyagents-live", opt
tinyagents-graph = { path = "../../vendor/tinyagents/crates/tinyagents-graph", features = [
"sqlite",
"storage-drivers",
+ "json-schema",
] }
tinyagents-registry = { path = "../../vendor/tinyagents/crates/tinyagents-registry" }
tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session", features = ["storage-drivers"] }
diff --git a/crates/openhuman-core/src/threads/wire_schema.rs b/crates/openhuman-core/src/threads/wire_schema.rs
index 0444d6ed78..72fc108270 100644
--- a/crates/openhuman-core/src/threads/wire_schema.rs
+++ b/crates/openhuman-core/src/threads/wire_schema.rs
@@ -40,6 +40,9 @@ pub struct ThreadWireTypes {
pub turn_citation: crate::memory::types::TurnCitation,
pub queue_mode: tinychannels_bus::web::QueueMode,
pub artifact_kind: crate::agent::artifacts::types::ArtifactKind,
+ pub thread_goal: tinyagents_graph::goals::ThreadGoal,
+ pub thread_todo_item: tinyagents_graph::todos::TodoItem,
+ pub run_mode: tinyagents_harness::middleware::library::RunMode,
}
/// Serialize the authoritative core/session record schemas for TypeScript codegen.
diff --git a/crates/openhuman-core/src/threads/wire_schema_tests.rs b/crates/openhuman-core/src/threads/wire_schema_tests.rs
index eec313d447..ddfba0471d 100644
--- a/crates/openhuman-core/src/threads/wire_schema_tests.rs
+++ b/crates/openhuman-core/src/threads/wire_schema_tests.rs
@@ -65,6 +65,9 @@ fn thread_wire_schema_exports_the_core_and_session_records() {
"turnCitation",
"queueMode",
"artifactKind",
+ "threadGoal",
+ "threadTodoItem",
+ "runMode",
] {
assert!(
properties.contains_key(property),
@@ -91,6 +94,10 @@ fn thread_wire_schema_exports_the_core_and_session_records() {
"video".to_owned(),
]
);
+ assert_eq!(
+ schema_string_values(&schema, &properties["runMode"]),
+ vec!["build".to_owned(), "plan".to_owned()]
+ );
let citation_schema = resolve_schema(&schema, &properties["turnCitation"]);
for field in ["id", "key", "namespace", "score", "timestamp", "snippet"] {
assert!(