Skip to content

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

feat(chat): add video artifact support

Steven Enamakelf9d2cc204852
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 99bb8a1065..e8439073cb 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -643,6 +643,7 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {
'presentation',
'document',
'image',
+ 'video',
'other',
]);
const isValidArtifactKind = (k: unknown): k is ArtifactKind =>
diff --git a/crates/openhuman-core/src/agent/artifacts/types.rs b/crates/openhuman-core/src/agent/artifacts/types.rs
index 02bf1052f8..22977fe004 100644
--- a/crates/openhuman-core/src/agent/artifacts/types.rs
+++ b/crates/openhuman-core/src/agent/artifacts/types.rs
@@ -2,7 +2,7 @@ use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
/// The category of an artifact produced by the agent.
-#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
+#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, schemars::JsonSchema)]
#[serde(rename_all = "lowercase")]
#[derive(Default)]
pub enum ArtifactKind {
diff --git a/crates/openhuman-core/src/threads/wire_schema.rs b/crates/openhuman-core/src/threads/wire_schema.rs
index ba116e44be..0444d6ed78 100644
--- a/crates/openhuman-core/src/threads/wire_schema.rs
+++ b/crates/openhuman-core/src/threads/wire_schema.rs
@@ -39,6 +39,7 @@ pub struct ThreadWireTypes {
pub run_event_list: tinyagents_session::run_ledger::types::RunEventListResponse,
pub turn_citation: crate::memory::types::TurnCitation,
pub queue_mode: tinychannels_bus::web::QueueMode,
+ pub artifact_kind: crate::agent::artifacts::types::ArtifactKind,
}
/// 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 5f8e9e93bc..eec313d447 100644
--- a/crates/openhuman-core/src/threads/wire_schema_tests.rs
+++ b/crates/openhuman-core/src/threads/wire_schema_tests.rs
@@ -64,6 +64,7 @@ fn thread_wire_schema_exports_the_core_and_session_records() {
"runTelemetry",
"turnCitation",
"queueMode",
+ "artifactKind",
] {
assert!(
properties.contains_key(property),
@@ -80,6 +81,16 @@ fn thread_wire_schema_exports_the_core_and_session_records() {
"steer".to_owned(),
]
);
+ assert_eq!(
+ schema_string_values(&schema, &properties["artifactKind"]),
+ vec![
+ "document".to_owned(),
+ "image".to_owned(),
+ "other".to_owned(),
+ "presentation".to_owned(),
+ "video".to_owned(),
+ ]
+ );
let citation_schema = resolve_schema(&schema, &properties["turnCitation"]);
for field in ["id", "key", "namespace", "score", "timestamp", "snippet"] {
assert!(
diff --git a/vendor/tinyagents b/vendor/tinyagents
index c98d8ef674..09344e1ac1 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit c98d8ef67415c5be45309dc02e06ac2bb17a7e6f
+Subproject commit 09344e1ac1896cf61a74b03e2260f8f196b4f61a