Skip to content

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

docs: add doc comments to ComposioReader and TwitterReader

Steven Enamakel9a584aebdcd5
diff --git a/src/openhuman/memory/sources/readers/composio.rs b/src/openhuman/memory/sources/readers/composio.rs
index 52e5f3fcd8..e8125cd81a 100644
--- a/src/openhuman/memory/sources/readers/composio.rs
+++ b/src/openhuman/memory/sources/readers/composio.rs
@@ -14,6 +14,12 @@ use crate::openhuman::config::Config;
use crate::openhuman::memory::sources::readers::SourceReader;
+/// Lists a Composio connection as a single sync target.
+///
+/// Composio data arrives through the provider sync pipeline rather than
+/// item-by-item, so `read_item` returns a description of that rather than
+/// content. The reader exists so the registry can query every source kind
+/// uniformly.
pub struct ComposioReader;
#[async_trait]
diff --git a/src/openhuman/memory/sources/readers/composio_tests.rs b/src/openhuman/memory/sources/readers/composio_tests.rs
index bb25ffe473..f7f334b100 100644
--- a/src/openhuman/memory/sources/readers/composio_tests.rs
+++ b/src/openhuman/memory/sources/readers/composio_tests.rs
@@ -1,7 +1,7 @@
//! Tests for the surrounding module.
use super::*;
-use crate::sources::types::MemorySourceEntry;
+use crate::openhuman::memory::sources::types::MemorySourceEntry;
fn test_source() -> MemorySourceEntry {
MemorySourceEntry {
diff --git a/src/openhuman/memory/sources/readers/twitter.rs b/src/openhuman/memory/sources/readers/twitter.rs
index 9c30c2612c..2e996dd9d4 100644
--- a/src/openhuman/memory/sources/readers/twitter.rs
+++ b/src/openhuman/memory/sources/readers/twitter.rs
@@ -14,6 +14,11 @@ use crate::openhuman::memory::sources::readers::SourceReader;
const DEFAULT_SINCE_DAYS: u32 = 7;
+/// Reads `twitter_query` sources.
+///
+/// Unimplemented: the Twitter API v2 search endpoint needs a bearer token and
+/// that credential wiring has not landed, so both methods validate the source
+/// and return an error naming what is missing.
pub struct TwitterReader;
#[async_trait]