Skip to content

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

feat(threads): derive JsonSchema for thread request models

Steven Enamakel58b007c60d77
diff --git a/crates/openhuman-core/src/threads/rpc_models.rs b/crates/openhuman-core/src/threads/rpc_models.rs
index c7218b4b95..bf1c3de248 100644
--- a/crates/openhuman-core/src/threads/rpc_models.rs
+++ b/crates/openhuman-core/src/threads/rpc_models.rs
@@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
pub use crate::core::envelope::{ApiEnvelope, ApiError, ApiMeta, EmptyRequest, PaginationMeta};
/// Request to create a new conversation thread.
-#[derive(Debug, Clone, Serialize, Deserialize)]
+#[derive(Debug, Clone, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct CreateConversationThreadRequest {
#[serde(default)]
@@ -25,7 +25,7 @@ pub struct CreateConversationThreadRequest {
/// Request to bind or clear the working folder of a thread that has no
/// messages yet.
-#[derive(Debug, Clone, Serialize, Deserialize)]
+#[derive(Debug, Clone, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(deny_unknown_fields)]
pub struct UpdateConversationThreadWorkingDirRequest {
pub thread_id: String,