tinyhumansai (Rust SDK)
Rust SDK for TinyHumans Neocortex memory APIs.
Requirements
- Rust 1.70+
- Tokio runtime for async usage
Install
Add to Cargo.toml:
[]
= "0.1"
= { = "1", = ["macros", "rt-multi-thread"] }
Get an API key
- Sign in to your TinyHumans account.
- Create a server API key in the TinyHumans dashboard.
- Export it before running examples:
# optional custom API URL
Quick start
use ;
async
Full route example
examples/test_routes.rs is the comprehensive example and exercises all currently implemented methods.
# optional env file override:
ENV_FILE=../sdk-python/.env
Client configuration
TinyHumanConfig::new(token) supports optional .with_base_url(url).
Base URL resolution: explicit config -> TINYHUMANS_BASE_URL -> NEOCORTEX_BASE_URL -> https://api.tinyhumans.ai.
Implemented methods
Core memory routes:
insert_memoryquery_memorydelete_memoryrecall_memoryrecall_memories
Memories/context/chat routes:
recall_memories_contextrecall_thoughtsinteract_memoryrecord_interactionsquery_memory_contextchat_memory_contextchat_memory
Documents and admin routes:
insert_documentinsert_documents_batchlist_documentsget_documentdelete_documentget_ingestion_jobwait_for_ingestion_jobget_graph_snapshotmemory_healthsync_memory
Tests