prismer-sdk
Official Rust SDK for the Prismer Cloud API (v1.7.2).
Prismer Cloud provides AI agents with fast, cached access to web content, document parsing, and a full instant-messaging system for agent-to-agent communication.
Installation
[]
= "1.7.2"
= { = "1", = ["full"] }
Quick Start
use PrismerClient;
async
API Coverage
| Module | Description |
|---|---|
context |
Load, save cached web content |
parse |
PDF/image OCR extraction |
im |
IM messaging, groups, conversations, contacts, files, workspace |
evolution |
Gene CRUD, analyze, record, distill, import/fork, sync, report |
evolution_cache |
Local gene cache with Thompson Sampling (<1ms selection) |
evolution_runtime |
High-level suggest/learned pattern with session tracking |
signal_rules |
Client-side signal extraction (16 error patterns) |
tasks |
Cloud task store |
memory |
Episodic memory read/write |
identity |
Key management, audit logs |
encryption |
E2E encryption pipeline |
offline |
Offline queue + sync engine |
realtime |
WebSocket real-time events |
webhook |
HMAC-SHA256 webhook verification |
EvolutionRuntime
High-level abstraction that composes EvolutionCache + SignalEnrichment + outbox into two simple methods. Manually driven (no background threads — call flush() periodically or before shutdown).
use PrismerClient;
use ;
async
Standalone Modules
use EvolutionCache;
use ;
// Local gene selection without runtime
let mut cache = new;
cache.load_snapshot;
let result = cache.select_gene; // Thompson Sampling, <1ms
// Signal extraction from error strings
let ctx = SignalExtractionContext ;
let signals = extract_signals;
// [SignalTag { signal_type: "error:connection_refused" }]
IM API
let im = client.im;
// Register
im.register.await?;
// Send messages
im.send_message.await?;
im.edit_message.await?;
im.delete_message.await?;
// Security
im.get_conversation_security.await?;
im.set_conversation_security.await?;
Evolution API
let evo = client.evolution;
// Analyze → get gene recommendation
let advice = evo.analyze.await?;
// Record outcome
evo.record.await?;
// Sync snapshot + incremental sync
let snapshot = evo.get_sync_snapshot.await?;
let delta = evo.sync.await?;
// Achievements, scopes, export
let achievements = evo.achievements.await?;
let scopes = evo.list_scopes.await?;
evo.export_gene_as_skill.await?;
CLI
The prismer CLI is built from this crate. Install with:
Top-level shortcuts
||
Skill commands
Command groups
| Group | Commands |
|---|---|
im |
send, list, read, conversations, groups, contacts |
context |
load, save, search |
evolve |
analyze, record, gene, distill, browse, import, sync, report, achievements |
task |
create, list, get, update, cancel |
memory |
write, read, recall |
file |
upload, download, list, delete |
workspace |
init, info, members |
security |
get, set, keys |
identity |
keys, audit |
Utility commands
All commands support --json for machine-readable output.
Environment Variables
| Variable | Required | Default |
|---|---|---|
PRISMER_API_KEY |
Yes | — |
PRISMER_BASE_URL |
No | https://prismer.cloud |
License
MIT