Rust SDK reference
Every discovered public declaration and client signature in the local rust SDK source.
This reference lists 294 source declarations from 10 files. It preserves signatures and types rather than assuming identical APIs across languages. See SDK compatibility before using a method against a deployed instance.
src/clients.rs
AkashaClient::new
pub fn new(base_url: Url, token: Option<String>, namespace: Option<Namespace>) -> Result<Self>Source: minds-rust-sdk/src/clients.rs:311.
AkashaClient::post_json
pub async fn post_json<T: Serialize, R: DeserializeOwned>(
&self,
path: &str,
body: &T,
) -> Result<R>Source: minds-rust-sdk/src/clients.rs:336.
AkashaClient::put_json
pub async fn put_json<T: Serialize, R: DeserializeOwned>(
&self,
path: &str,
body: &T,
) -> Result<R>Source: minds-rust-sdk/src/clients.rs:344.
AkashaClient::patch_json
pub async fn patch_json<T: Serialize, R: DeserializeOwned>(
&self,
path: &str,
body: &T,
) -> Result<R>Source: minds-rust-sdk/src/clients.rs:352.
AkashaClient::delete_json
pub async fn delete_json<R: DeserializeOwned>(&self, path: &str) -> Result<R>Source: minds-rust-sdk/src/clients.rs:360.
AkashaClient::get_json
pub async fn get_json<R: DeserializeOwned>(&self, path: &str) -> Result<R>Source: minds-rust-sdk/src/clients.rs:364.
CoreClient::list_keyspaces
pub async fn list_keyspaces(&self) -> Result<Vec<KeyspaceInfo>>Source: minds-rust-sdk/src/clients.rs:381.
CoreClient::create_keyspace
pub async fn create_keyspace(&self, name: &str, model: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:384.
CoreClient::import_domain_primitives
pub async fn import_domain_primitives(
&self,
keyspace: &str,
records: &[Value],
schema_version: Option<u32>,
upsert: bool,
) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:392.
CoreClient::export_domain_primitives
pub async fn export_domain_primitives(
&self,
keyspace: &str,
schema_version: Option<u32>,
) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:420.
CoreClient::backup_create
pub async fn backup_create(&self, backup_dir: &str, options: Option<Value>) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:442.
CoreClient::backup_list
pub async fn backup_list(&self, backup_dir: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:460.
CoreClient::backup_delete
pub async fn backup_delete(&self, backup_dir: &str, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:471.
CoreClient::backup_restore
pub async fn backup_restore(
&self,
backup_dir: &str,
id: &str,
options: Option<Value>,
) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:483.
CoreClient::kv_health
pub async fn kv_health(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:508.
CoreClient::kv_consistency
pub async fn kv_consistency(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:512.
CoreClient::storage_volume_create
pub async fn storage_volume_create(&self, payload: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:516.
CoreClient::storage_volume_list
pub async fn storage_volume_list(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:520.
CoreClient::storage_volume_attach
pub async fn storage_volume_attach(&self, payload: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:524.
CoreClient::storage_volume_detach
pub async fn storage_volume_detach(&self, payload: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:528.
CoreClient::storage_volume_delete
pub async fn storage_volume_delete(&self, volume_id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:532.
CoreClient::stats
pub async fn stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:537.
GraphClient::cypher
pub async fn cypher<T: for<'de> Deserialize<'de>>(&self, query: &str) -> Result<Vec<T>>Source: minds-rust-sdk/src/clients.rs:548.
GraphClient::text_search
pub async fn text_search(&self, q: &str, limit: usize) -> Result<Vec<Value>>Source: minds-rust-sdk/src/clients.rs:555.
GraphClient::ensure_property_index
pub async fn ensure_property_index(&self, property: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:565.
GraphClient::index_stats
pub async fn index_stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:574.
GraphClient::pagerank
pub async fn pagerank(&self, damping_factor: Option<f64>) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:577.
GraphClient::shortest_path
pub async fn shortest_path(&self, source: &str, target: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:586.
GraphClient::connected_components
pub async fn connected_components(&self, strong: bool) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:596.
GraphClient::microtheory_switch
pub async fn microtheory_switch(&self, name: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:605.
GraphClient::microtheory_keyspace
pub async fn microtheory_keyspace(&self, name: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:614.
GraphClient::schema_metadata
pub async fn schema_metadata(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:623.
AnalyticsClient::sql
pub async fn sql(&self, query: &str) -> Result<Vec<Value>>Source: minds-rust-sdk/src/clients.rs:634.
AnalyticsClient::register_csv
pub async fn register_csv(&self, name: &str, path: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:641.
AnalyticsClient::register_parquet
pub async fn register_parquet(&self, name: &str, path: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:651.
AnalyticsClient::options
pub async fn options(&self, opts: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:661.
AnalyticsClient::cache_clear
pub async fn cache_clear(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:664.
AnalyticsClient::cache_stats
pub async fn cache_stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:669.
MlClient::embed
pub async fn embed(&self, text: &str) -> Result<Vec<f32>>Source: minds-rust-sdk/src/clients.rs:689.
MlClient::generate
pub async fn generate(
&self,
model_id: &str,
prompt: &str,
max_tokens: usize,
temperature: f32,
) -> Result<String>Source: minds-rust-sdk/src/clients.rs:701.
MlClient::models
pub async fn models(&self) -> Result<Vec<String>>Source: minds-rust-sdk/src/clients.rs:733.
MlClient::load_model_from_path
pub async fn load_model_from_path(
&self,
name: &str,
model_type: &str,
framework: &str,
path: &str,
) -> Result<String>Source: minds-rust-sdk/src/clients.rs:741.
MlClient::load_model_from_b64
pub async fn load_model_from_b64(
&self,
name: &str,
model_type: &str,
framework: &str,
data_b64: &str,
) -> Result<String>Source: minds-rust-sdk/src/clients.rs:773.
MlClient::unload_model
pub async fn unload_model(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:805.
MlClient::vector_create
pub async fn vector_create(&self, name: &str, dims: usize, metric: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:812.
MlClient::vector_add
pub async fn vector_add(&self, name: &str, id: &str, vector: &[f32]) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:823.
MlClient::vector_search
pub async fn vector_search(&self, name: &str, vector: &[f32], k: usize) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:834.
MlClient::vector_save
pub async fn vector_save(&self, name: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:845.
MlClient::vector_list
pub async fn vector_list(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:852.
MlClient::metrics
pub async fn metrics(&self, model_id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:855.
MlClient::generate_stream
pub fn generate_stream(
&self,
model_id: String,
prompt: String,
max_tokens: usize,
temperature: f32,
) -> impl Stream<Item = Result<String>> + '_Source: minds-rust-sdk/src/clients.rs:862.
MemoryClient::search
pub async fn search(&self, q: &str, limit: usize) -> Result<Vec<Value>>Source: minds-rust-sdk/src/clients.rs:911.
MemoryClient::episodic_delete
pub async fn episodic_delete(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:921.
MemoryClient::episodic_store
pub async fn episodic_store(&self, raw_from: &str, tags: Option<&[String]>) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:925.
MemoryClient::retrieval_hybrid
pub async fn retrieval_hybrid(&self, text: &str, limit: Option<usize>) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:936.
MemoryClient::vault_search
pub async fn vault_search(&self, pattern: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:947.
MemoryClient::vault_get
pub async fn vault_get(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:956.
MemoryClient::vault_delete
pub async fn vault_delete(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:963.
MemoryClient::vault_stats
pub async fn vault_stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:970.
AssocMhnClient::new_network
pub async fn new_network(&self, config: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:981.
AssocMhnClient::store
pub async fn store(&self, id: &str, vector: &[f32]) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:984.
AssocMhnClient::retrieve_by_key
pub async fn retrieve_by_key(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:994.
AssocMhnClient::retrieve_by_vector
pub async fn retrieve_by_vector(&self, vector: &[f32], k: usize) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1003.
AssocMhnClient::clear
pub async fn clear(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1013.
AssocMhnClient::stats
pub async fn stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1018.
AssocMhnClient::config
pub async fn config(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1021.
AssocMhnClient::system_info
pub async fn system_info(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1024.
AssocMhnClient::new_network_typed
pub async fn new_network_typed(
&self,
req: &v1::mhn::NewRequest,
) -> Result<v1::mhn::NewResponse>Source: minds-rust-sdk/src/clients.rs:1029.
AssocMhnClient::store_typed
pub async fn store_typed(&self, req: &v1::mhn::StoreRequest) -> Result<v1::mhn::StoreResponse>Source: minds-rust-sdk/src/clients.rs:1035.
AssocMhnClient::retrieve_by_key_typed
pub async fn retrieve_by_key_typed(
&self,
req: &v1::mhn::RetrieveByKeyRequest,
) -> Result<v1::mhn::RetrieveResponse>Source: minds-rust-sdk/src/clients.rs:1038.
AssocMhnClient::retrieve_by_vector_typed
pub async fn retrieve_by_vector_typed(
&self,
req: &v1::mhn::RetrieveByVectorRequest,
) -> Result<v1::mhn::NeighborsResponse>Source: minds-rust-sdk/src/clients.rs:1044.
AssocMhnClient::clear_typed
pub async fn clear_typed(&self) -> Result<v1::mhn::ClearResponse>Source: minds-rust-sdk/src/clients.rs:1052.
AssocMhnClient::stats_typed
pub async fn stats_typed(&self) -> Result<v1::mhn::StatsResponse>Source: minds-rust-sdk/src/clients.rs:1057.
AssocMhnClient::config_typed
pub async fn config_typed(&self) -> Result<v1::mhn::ConfigResponse>Source: minds-rust-sdk/src/clients.rs:1060.
AssocMhnClient::system_info_typed
pub async fn system_info_typed(&self) -> Result<v1::mhn::SystemInfoResponse>Source: minds-rust-sdk/src/clients.rs:1063.
CognitiveClient::thought
pub async fn thought(&self, thought: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1074.
CognitiveClient::decision
pub async fn decision(&self, decision: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1079.
CognitiveClient::interaction
pub async fn interaction(&self, interaction: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1084.
CognitiveClient::session
pub async fn session(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1089.
CognitiveClient::session_update
pub async fn session_update(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1092.
CognitiveClient::query
pub async fn query(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1097.
CognitiveClient::decision_trace
pub async fn decision_trace(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1100.
CognitiveClient::thought_typed
pub async fn thought_typed(
&self,
thought: &v1::cognitive::CognitiveThought,
) -> Result<v1::cognitive::IdResponse>Source: minds-rust-sdk/src/clients.rs:1111.
CognitiveClient::decision_typed
pub async fn decision_typed(
&self,
decision: &v1::cognitive::CognitiveDecision,
) -> Result<v1::cognitive::IdResponse>Source: minds-rust-sdk/src/clients.rs:1123.
CognitiveClient::interaction_typed
pub async fn interaction_typed(
&self,
interaction: &v1::cognitive::AgentInteraction,
) -> Result<v1::cognitive::IdResponse>Source: minds-rust-sdk/src/clients.rs:1135.
CognitiveClient::session_typed
pub async fn session_typed(
&self,
agent_id: &str,
goal: &str,
) -> Result<v1::cognitive::SessionStartResponse>Source: minds-rust-sdk/src/clients.rs:1147.
CognitiveClient::session_update_typed
pub async fn session_update_typed(
&self,
session: &v1::cognitive::CognitiveSession,
) -> Result<serde_json::Value>Source: minds-rust-sdk/src/clients.rs:1161.
CognitiveClient::query_typed
pub async fn query_typed(
&self,
query: &v1::cognitive::CognitiveQuery,
) -> Result<v1::cognitive::QueryResponse>Source: minds-rust-sdk/src/clients.rs:1173.
CognitiveClient::decision_trace_typed
pub async fn decision_trace_typed(
&self,
id: &str,
) -> Result<v1::cognitive::DecisionTraceResponse>Source: minds-rust-sdk/src/clients.rs:1185.
CycleClient::start
pub async fn start(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1205.
CycleClient::stop
pub async fn stop(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1210.
CycleClient::metrics
pub async fn metrics(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1215.
CycleClient::reinforce
pub async fn reinforce(
&self,
trace_id: &str,
value: f32,
source: Option<&str>,
) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1218.
CycleClient::experience
pub async fn experience(&self, content: &str, context: Option<&str>) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1242.
CycleClient::start_typed
pub async fn start_typed(&self) -> Result<v1::cycle::StartResponse>Source: minds-rust-sdk/src/clients.rs:1255.
CycleClient::stop_typed
pub async fn stop_typed(&self) -> Result<v1::cycle::StopResponse>Source: minds-rust-sdk/src/clients.rs:1260.
CycleClient::metrics_typed
pub async fn metrics_typed(&self) -> Result<v1::cycle::MetricsResponse>Source: minds-rust-sdk/src/clients.rs:1265.
CycleClient::reinforce_typed
pub async fn reinforce_typed(
&self,
trace_id: &str,
value: f32,
source: Option<&str>,
) -> Result<v1::cycle::OkResponse>Source: minds-rust-sdk/src/clients.rs:1268.
CycleClient::experience_typed
pub async fn experience_typed(
&self,
content: &str,
context: Option<&str>,
) -> Result<v1::cycle::ExperienceResponse>Source: minds-rust-sdk/src/clients.rs:1292.
ContinualClient::checkpoints
pub async fn checkpoints(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1315.
ContinualClient::checkpoints_status
pub async fn checkpoints_status(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1318.
ContinualClient::recover
pub async fn recover(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1321.
ContinualClient::components
pub async fn components(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1324.
ContinualClient::delete_component
pub async fn delete_component(&self, id: &str) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1327.
SnnClient::network_build
pub async fn network_build(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1386.
SnnClient::network_compile
pub async fn network_compile(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1389.
SnnClient::network_step
pub async fn network_step(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1392.
SnnClient::train_bptt
pub async fn train_bptt(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1395.
SnnClient::network_state
pub async fn network_state(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1398.
SnnClient::federation_agent_update
pub async fn federation_agent_update(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1402.
SnnClient::federation_agent_remove
pub async fn federation_agent_remove(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1406.
SnnClient::federation_recent_spikes
pub async fn federation_recent_spikes(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1410.
NeuroSymbolicClient::retrieve
pub async fn retrieve(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1421.
NeuroSymbolicClient::retrieve_with_mode
pub async fn retrieve_with_mode(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1424.
NeuroSymbolicClient::paths_find
pub async fn paths_find(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1427.
NeuroSymbolicClient::prefetch_start
pub async fn prefetch_start(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1430.
NeuroSymbolicClient::prefetch_stop
pub async fn prefetch_stop(&self, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1433.
NeuroSymbolicClient::cache_stats
pub async fn cache_stats(&self) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1436.
NeuroSymbolicClient::cb_execute
pub async fn cb_execute(&self, name: &str, req: &Value) -> Result<Value>Source: minds-rust-sdk/src/clients.rs:1439.
CognitiveThought
pub struct CognitiveThought {
pub id: uuid::Uuid,
pub agent_id: String,
pub timestamp: chrono::DateTime<chrono::Utc>,
pub thought_type: ThoughtType,
pub content: String,
pub confidence: f32,
pub parent_thought_id: Option<uuid::Uuid>,
pub context: HashMap<String, serde_json::Value>,
pub tags: Vec<String>,
}Source: minds-rust-sdk/src/clients.rs:20.
ThoughtType
pub enum ThoughtType {
ProblemAnalysis,
Hypothesis,
EvidenceEvaluation,
Reasoning,
Decision,
Planning,
Reflection,
ErrorDetection,
Learning,
Communication,
}Source: minds-rust-sdk/src/clients.rs:33.
DecisionOption
pub struct DecisionOption {
pub option: String,
pub pros: Vec<String>,
pub cons: Vec<String>,
pub score: f32,
pub rejected_reason: Option<String>,
}Source: minds-rust-sdk/src/clients.rs:47.
CognitiveDecision
pub struct CognitiveDecision {
pub id: uuid::Uuid,
pub agent_id: String,
pub timestamp: chrono::DateTime<chrono::Utc>,
pub decision: String,
pub options_considered: Vec<DecisionOption>,
pub reasoning_trace: Vec<uuid::Uuid>,
pub confidence: f32,
pub expected_outcomes: Vec<String>,
pub actual_outcomes: Option<Vec<String>>,
}Source: minds-rust-sdk/src/clients.rs:56.
InteractionType
pub enum InteractionType {
Query,
Request,
Inform,
Delegate,
Collaborate,
Negotiate,
Conflict,
Consensus,
}Source: minds-rust-sdk/src/clients.rs:69.
InteractionResponse
pub struct InteractionResponse {
pub timestamp: chrono::DateTime<chrono::Utc>,
pub response: String,
pub success: bool,
pub metadata: HashMap<String, serde_json::Value>,
}Source: minds-rust-sdk/src/clients.rs:81.
AgentInteraction
pub struct AgentInteraction {
pub id: uuid::Uuid,
pub timestamp: chrono::DateTime<chrono::Utc>,
pub from_agent: String,
pub to_agent: String,
pub interaction_type: InteractionType,
pub message: String,
pub context: HashMap<String, serde_json::Value>,
pub response: Option<InteractionResponse>,
}Source: minds-rust-sdk/src/clients.rs:89.
CognitiveSession
pub struct CognitiveSession {
pub id: uuid::Uuid,
pub agent_id: String,
pub start_time: chrono::DateTime<chrono::Utc>,
pub end_time: Option<chrono::DateTime<chrono::Utc>>,
pub goal: String,
pub thoughts: Vec<uuid::Uuid>,
pub decisions: Vec<uuid::Uuid>,
pub interactions: Vec<uuid::Uuid>,
pub outcome: Option<SessionOutcome>,
pub metadata: HashMap<String, serde_json::Value>,
}Source: minds-rust-sdk/src/clients.rs:101.
SessionOutcome
pub struct SessionOutcome {
pub success: bool,
pub result: String,
pub learnings: Vec<String>,
pub follow_up_required: bool,
}Source: minds-rust-sdk/src/clients.rs:115.
CognitiveQuery
pub struct CognitiveQuery {
pub agent_id: Option<String>,
pub start_time: Option<chrono::DateTime<chrono::Utc>>,
pub end_time: Option<chrono::DateTime<chrono::Utc>>,
pub min_confidence: Option<f32>,
pub include_thoughts: bool,
pub include_decisions: bool,
pub include_interactions: bool,
pub include_sessions: bool,
}Source: minds-rust-sdk/src/clients.rs:123.
IdResponse
pub struct IdResponse {
pub id: String,
}Source: minds-rust-sdk/src/clients.rs:135.
SessionStartResponse
pub struct SessionStartResponse {
pub session: CognitiveSession,
}Source: minds-rust-sdk/src/clients.rs:140.
QueryResponse
pub struct QueryResponse {
pub thoughts: usize,
pub decisions: usize,
pub interactions: usize,
pub sessions: usize,
}Source: minds-rust-sdk/src/clients.rs:145.
DecisionTraceResponse
pub struct DecisionTraceResponse {
pub length: usize,
}Source: minds-rust-sdk/src/clients.rs:153.
StartResponse
pub struct StartResponse {
pub running: bool,
}Source: minds-rust-sdk/src/clients.rs:163.
StopResponse
pub struct StopResponse {
pub stopped: bool,
}Source: minds-rust-sdk/src/clients.rs:168.
OkResponse
pub struct OkResponse {
pub ok: bool,
}Source: minds-rust-sdk/src/clients.rs:173.
ExperienceResponse
pub struct ExperienceResponse {
pub trace_id: String,
pub action: String,
}Source: minds-rust-sdk/src/clients.rs:178.
StageStats
pub struct StageStats {
pub count: u64,
pub mean_ms: f64,
pub std_dev_ms: f64,
pub min_ms: f64,
pub max_ms: f64,
}Source: minds-rust-sdk/src/clients.rs:184.
MetricsResponse
pub struct MetricsResponse {
pub broadcasts_total: u64,
pub broadcast_send_failures_total: u64,
pub receiver_lag_total: u64,
pub receivers_current: u64,
pub signals_cache_len: u64,
pub stage_stats: Vec<StageStats>,
pub reward: RewardStats,
}Source: minds-rust-sdk/src/clients.rs:193.
RewardStats
pub struct RewardStats {
pub count: u64,
pub mean: f64,
pub std_dev: f64,
pub min: f64,
pub max: f64,
}Source: minds-rust-sdk/src/clients.rs:204.
NewRequest
pub struct NewRequest {
pub dimensions: usize,
}Source: minds-rust-sdk/src/clients.rs:218.
NewResponse
pub struct NewResponse {
pub ok: bool,
pub dims: usize,
}Source: minds-rust-sdk/src/clients.rs:223.
StoreRequest
pub struct StoreRequest {
pub id: String,
pub vector: Vec<f32>,
}Source: minds-rust-sdk/src/clients.rs:229.
StoreResponse
pub struct StoreResponse {
pub id: String,
}Source: minds-rust-sdk/src/clients.rs:235.
RetrieveByKeyRequest
pub struct RetrieveByKeyRequest {
pub id: String,
}Source: minds-rust-sdk/src/clients.rs:240.
RetrieveByVectorRequest
pub struct RetrieveByVectorRequest {
pub vector: Vec<f32>,
pub k: Option<usize>,
}Source: minds-rust-sdk/src/clients.rs:245.
RetrieveResponse
pub struct RetrieveResponse {
pub id: String,
pub embedding: Vec<f32>,
}Source: minds-rust-sdk/src/clients.rs:251.
Neighbor
pub struct Neighbor {
pub id: String,
pub score: f64,
}Source: minds-rust-sdk/src/clients.rs:257.
NeighborsResponse
pub struct NeighborsResponse {
pub neighbors: Vec<Neighbor>,
}Source: minds-rust-sdk/src/clients.rs:263.
ClearResponse
pub struct ClearResponse {
pub ok: bool,
}Source: minds-rust-sdk/src/clients.rs:268.
StatsResponse
pub struct StatsResponse {
pub count: usize,
}Source: minds-rust-sdk/src/clients.rs:273.
ConfigResponse
pub struct ConfigResponse {
pub dimensions: Option<usize>,
pub persistence: bool,
}Source: minds-rust-sdk/src/clients.rs:278.
SystemInfoResponse
pub struct SystemInfoResponse {
pub dimensions: Option<usize>,
pub count: usize,
pub capacity_estimate: Option<usize>,
pub load_factor: f64,
}Source: minds-rust-sdk/src/clients.rs:284.
AkashaClient
pub struct AkashaClient {
http: Http,
pub core: CoreClient,
pub graph: GraphClient,
pub analytics: AnalyticsClient,
pub ml: MlClient,
pub memory: MemoryClient,
pub continual: ContinualClient,
pub snn: SnnClient,
pub neurosymbolic: NeuroSymbolicClient,
pub assoc_mhn: AssocMhnClient,
pub cognitive: CognitiveClient,
pub cycle: CycleClient,
}Source: minds-rust-sdk/src/clients.rs:295.
CoreClient
pub struct CoreClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:370.
KeyspaceInfo
pub struct KeyspaceInfo {
pub name: String,
pub model: String,
}Source: minds-rust-sdk/src/clients.rs:375.
GraphClient
pub struct GraphClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:543.
AnalyticsClient
pub struct AnalyticsClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:629.
MlClient
pub struct MlClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:677.
ModelInfo
pub struct ModelInfo {
pub id: String,
pub name: String,
pub framework: String,
}Source: minds-rust-sdk/src/clients.rs:682.
MemoryClient
pub struct MemoryClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:906.
AssocMhnClient
pub struct AssocMhnClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:976.
CognitiveClient
pub struct CognitiveClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:1069.
CycleClient
pub struct CycleClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:1200.
ContinualClient
pub struct ContinualClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:1310.
SnnClient
pub struct SnnClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:1334.
SnnBuildRequest
pub struct SnnBuildRequest {
pub namespace: String,
pub network_id: Option<String>,
pub version: Option<String>,
pub spec: serde_json::Value,
pub actions: Vec<String>,
pub capability: CapabilityTokenPayload,
}Source: minds-rust-sdk/src/clients.rs:1339.
SnnCompileRequest
pub struct SnnCompileRequest {
pub namespace: String,
pub network_id: String,
pub version: Option<String>,
pub actions: Vec<String>,
pub capability: CapabilityTokenPayload,
}Source: minds-rust-sdk/src/clients.rs:1349.
SnnStepRequest
pub struct SnnStepRequest {
pub namespace: String,
pub network_id: String,
pub version: Option<String>,
pub input: Vec<f32>,
pub actions: Vec<String>,
pub capability: CapabilityTokenPayload,
}Source: minds-rust-sdk/src/clients.rs:1358.
SnnTrainRequest
pub struct SnnTrainRequest {
pub namespace: String,
pub network_id: String,
pub version: Option<String>,
pub steps: usize,
pub actions: Vec<String>,
#[serde(flatten)]
pub capability: CapabilityTokenPayload,
}Source: minds-rust-sdk/src/clients.rs:1368.
SnnStateRequest
pub struct SnnStateRequest {
pub namespace: String,
pub actions: Vec<String>,
pub capability: CapabilityTokenPayload,
}Source: minds-rust-sdk/src/clients.rs:1379.
NeuroSymbolicClient
pub struct NeuroSymbolicClient {
http: Http,
}Source: minds-rust-sdk/src/clients.rs:1416.
v1
pub mod v1 {
/// Cognitive API types
pub mod cognitive {
use serde::{Deserialize, Serialize};Source: minds-rust-sdk/src/clients.rs:12.
cycle
pub mod cycle {
use serde::{Deserialize, Serialize};Source: minds-rust-sdk/src/clients.rs:159.
mhn
pub mod mhn {
use serde::{Deserialize, Serialize};Source: minds-rust-sdk/src/clients.rs:214.
src/control_plane/client.rs
ControlPlaneConfig::new
pub fn new(api_key: impl Into<String>) -> Result<Self>Source: minds-rust-sdk/src/control_plane/client.rs:33.
ControlPlaneConfig::staging
pub fn staging(api_key: impl Into<String>) -> Result<Self>Source: minds-rust-sdk/src/control_plane/client.rs:44.
ControlPlaneConfig::with_base_url
pub fn with_base_url(mut self, url: impl AsRef<str>) -> Result<Self>Source: minds-rust-sdk/src/control_plane/client.rs:55.
ControlPlaneConfig::with_timeout
pub fn with_timeout(mut self, timeout: Duration) -> SelfSource: minds-rust-sdk/src/control_plane/client.rs:62.
TenantClient::list
pub async fn list(&self, query: Option<&ListTenantsQuery>) -> Result<ListTenantsResponse>Source: minds-rust-sdk/src/control_plane/client.rs:167.
TenantClient::create
pub async fn create(&self, request: &CreateTenantRequest) -> Result<CreateTenantResponse>Source: minds-rust-sdk/src/control_plane/client.rs:191.
TenantClient::get
pub async fn get(&self, tenant_id: &str) -> Result<Tenant>Source: minds-rust-sdk/src/control_plane/client.rs:196.
TenantClient::update
pub async fn update(
&self,
tenant_id: &str,
request: &UpdateTenantRequest,
) -> Result<UpdateTenantResponse>Source: minds-rust-sdk/src/control_plane/client.rs:202.
TenantClient::delete
pub async fn delete(&self, tenant_id: &str, force: bool) -> Result<DeleteTenantResponse>Source: minds-rust-sdk/src/control_plane/client.rs:212.
TenantClient::status
pub async fn status(&self, tenant_id: &str) -> Result<TenantStatusResponse>Source: minds-rust-sdk/src/control_plane/client.rs:221.
TenantClient::scale
pub async fn scale(&self, tenant_id: &str, request: &ScaleRequest) -> Result<ScaleResponse>Source: minds-rust-sdk/src/control_plane/client.rs:227.
TenantClient::generate_token
pub async fn generate_token(&self, tenant_id: &str) -> Result<GenerateTokenResponse>Source: minds-rust-sdk/src/control_plane/client.rs:233.
BackupClient::list
pub async fn list(&self, tenant_id: &str) -> Result<ListBackupsResponse>Source: minds-rust-sdk/src/control_plane/client.rs:246.
BackupClient::create
pub async fn create(
&self,
tenant_id: &str,
request: Option<&CreateBackupRequest>,
) -> Result<CreateBackupResponse>Source: minds-rust-sdk/src/control_plane/client.rs:252.
BackupClient::get
pub async fn get(&self, tenant_id: &str, backup_id: &str) -> Result<Backup>Source: minds-rust-sdk/src/control_plane/client.rs:263.
BackupClient::restore
pub async fn restore(
&self,
tenant_id: &str,
backup_id: &str,
request: Option<&RestoreBackupRequest>,
) -> Result<RestoreBackupResponse>Source: minds-rust-sdk/src/control_plane/client.rs:273.
BackupClient::delete
pub async fn delete(&self, tenant_id: &str, backup_id: &str) -> Result<()>Source: minds-rust-sdk/src/control_plane/client.rs:289.
MonitoringClient::health
pub async fn health(&self, tenant_id: &str) -> Result<HealthResponse>Source: minds-rust-sdk/src/control_plane/client.rs:307.
MonitoringClient::metrics
pub async fn metrics(&self, tenant_id: &str, period: MetricsPeriod) -> Result<MetricsResponse>Source: minds-rust-sdk/src/control_plane/client.rs:313.
MonitoringClient::usage
pub async fn usage(&self, tenant_id: &str) -> Result<UsageResponse>Source: minds-rust-sdk/src/control_plane/client.rs:323.
MonitoringClient::wait_for_active
pub async fn wait_for_active(
&self,
tenant_id: &str,
poll_interval: Duration,
timeout: Duration,
) -> Result<TenantStatusResponse>Source: minds-rust-sdk/src/control_plane/client.rs:329.
ControlPlaneClient::new
pub fn new(config: ControlPlaneConfig) -> Result<Self>Source: minds-rust-sdk/src/control_plane/client.rs:406.
ControlPlaneClient::from_env
pub fn from_env() -> Result<Self>Source: minds-rust-sdk/src/control_plane/client.rs:414.
ControlPlaneClient::tenants
pub fn tenants(&self) -> TenantClientSource: minds-rust-sdk/src/control_plane/client.rs:429.
ControlPlaneClient::backups
pub fn backups(&self) -> BackupClientSource: minds-rust-sdk/src/control_plane/client.rs:439.
ControlPlaneClient::monitoring
pub fn monitoring(&self) -> MonitoringClientSource: minds-rust-sdk/src/control_plane/client.rs:449.
ControlPlaneClient::provision
pub async fn provision(
&self,
request: &CreateTenantRequest,
poll_interval: Duration,
timeout: Duration,
) -> Result<Tenant>Source: minds-rust-sdk/src/control_plane/client.rs:461.
ControlPlaneConfig
pub struct ControlPlaneConfig {
/// API key for authentication
pub api_key: String,
/// Base URL for the control plane API
pub base_url: Url,
/// Request timeout
pub timeout: Duration,
}Source: minds-rust-sdk/src/control_plane/client.rs:22.
TenantClient
pub struct TenantClient {
http: ControlPlaneHttp,
}Source: minds-rust-sdk/src/control_plane/client.rs:161.
BackupClient
pub struct BackupClient {
http: ControlPlaneHttp,
}Source: minds-rust-sdk/src/control_plane/client.rs:240.
MonitoringClient
pub struct MonitoringClient {
http: ControlPlaneHttp,
}Source: minds-rust-sdk/src/control_plane/client.rs:301.
ControlPlaneClient
pub struct ControlPlaneClient {
http: ControlPlaneHttp,
}Source: minds-rust-sdk/src/control_plane/client.rs:400.
src/control_plane/mod.rs
client
pub use client::{
BackupClient, ControlPlaneClient, ControlPlaneConfig, MonitoringClient, TenantClient,
};Source: minds-rust-sdk/src/control_plane/mod.rs:57.
types
pub use types::*;Source: minds-rust-sdk/src/control_plane/mod.rs:61.
src/control_plane/types.rs
CreateTenantRequest::new
pub fn new(org_id: impl Into<String>, name: impl Into<String>, plan: TenantPlan) -> SelfSource: minds-rust-sdk/src/control_plane/types.rs:136.
CreateTenantRequest::with_region
pub fn with_region(mut self, region: impl Into<String>) -> SelfSource: minds-rust-sdk/src/control_plane/types.rs:152.
CreateTenantRequest::with_slug
pub fn with_slug(mut self, slug: impl Into<String>) -> SelfSource: minds-rust-sdk/src/control_plane/types.rs:157.
MetricsPeriod::as_str
pub fn as_str(&self) -> &'static strSource: minds-rust-sdk/src/control_plane/types.rs:396.
TenantStatus
pub enum TenantStatus {
Provisioning,
Active,
Scaling,
Suspended,
Failed,
Deleted,
}Source: minds-rust-sdk/src/control_plane/types.rs:16.
TenantPlan
pub enum TenantPlan {
Free,
Starter,
Pro,
Enterprise,
}Source: minds-rust-sdk/src/control_plane/types.rs:28.
ProductType
pub enum ProductType {
#[default]
Legacy,
MemoryCloud,
}Source: minds-rust-sdk/src/control_plane/types.rs:38.
TenantConfig
pub struct TenantConfig {
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_gb: Option<i32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub enable_backups: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub retention_days: Option<i32>,
}Source: minds-rust-sdk/src/control_plane/types.rs:46.
TenantMetadata
pub struct TenantMetadata {
pub instance_id: String,
pub k8s_namespace: String,
pub storage_namespace: String,
#[serde(default)]
pub jwt_secret_version: Option<i32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub last_health_check: Option<DateTime<Utc>>,
#[serde(skip_serializing_if = "Option::is_none")]
pub provisioning_duration_ms: Option<i64>,
}Source: minds-rust-sdk/src/control_plane/types.rs:57.
TenantStats
pub struct TenantStats {
pub storage_used_gb: f64,
pub requests_total: i64,
pub uptime_percent: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:71.
Tenant
pub struct Tenant {
pub id: String,
pub org_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub project_id: Option<String>,
pub name: String,
pub slug: String,
pub endpoint: String,
pub plan: TenantPlan,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_memory_limit: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_retrieval_quota: Option<i64>,
#[serde(default)]
pub plan_graph_enabled: bool,
#[serde(default)]
pub plan_node_partitioning: bool,
#[serde(default)]
pub product_type: ProductType,
pub region: String,
pub status: TenantStatus,
#[serde(skip_serializing_if = "Option::is_none")]
pub config: Option<TenantConfig>,
pub metadata: TenantMetadata,
#[serde(skip_serializing_if = "Option::is_none")]
pub stats: Option<TenantStats>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
#[serde(skip_serializing_if = "Option::is_none")]
pub deleted_at: Option<DateTime<Utc>>,
}Source: minds-rust-sdk/src/control_plane/types.rs:79.
CreateTenantRequest
pub struct CreateTenantRequest {
pub org_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub project_id: Option<String>,
pub name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub slug: Option<String>,
pub plan: TenantPlan,
#[serde(skip_serializing_if = "Option::is_none")]
pub product_type: Option<ProductType>,
#[serde(skip_serializing_if = "Option::is_none")]
pub region: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub config: Option<TenantConfig>,
#[serde(skip_serializing_if = "Option::is_none")]
pub service_type: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub bundle: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub service_config: Option<HashMap<String, serde_json::Value>>,
}Source: minds-rust-sdk/src/control_plane/types.rs:113.
CreateTenantResponse
pub struct CreateTenantResponse {
pub tenant_id: String,
pub slug: String,
pub endpoint: String,
pub status: TenantStatus,
pub created_at: DateTime<Utc>,
pub estimated_ready_in: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:165.
UpdateTenantRequest
pub struct UpdateTenantRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan: Option<TenantPlan>,
#[serde(skip_serializing_if = "Option::is_none")]
pub product_type: Option<ProductType>,
#[serde(skip_serializing_if = "Option::is_none")]
pub config: Option<TenantConfig>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_memory_limit: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_retrieval_quota: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_graph_enabled: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_node_partitioning: Option<bool>,
}Source: minds-rust-sdk/src/control_plane/types.rs:176.
UpdateTenantResponse
pub struct UpdateTenantResponse {
pub id: String,
pub name: String,
pub plan: TenantPlan,
pub updated_at: DateTime<Utc>,
}Source: minds-rust-sdk/src/control_plane/types.rs:197.
ListTenantsQuery
pub struct ListTenantsQuery {
pub org_id: Option<String>,
pub status: Option<TenantStatus>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Source: minds-rust-sdk/src/control_plane/types.rs:206.
Pagination
pub struct Pagination {
pub total: i64,
pub limit: i32,
pub offset: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:215.
ListTenantsResponse
pub struct ListTenantsResponse {
pub tenants: Vec<TenantSummary>,
pub pagination: Pagination,
}Source: minds-rust-sdk/src/control_plane/types.rs:223.
TenantSummary
pub struct TenantSummary {
pub id: String,
pub org_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub project_id: Option<String>,
pub name: String,
pub slug: String,
pub endpoint: String,
pub plan: TenantPlan,
pub product_type: ProductType,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_memory_limit: Option<i64>,
#[serde(skip_serializing_if = "Option::is_none")]
pub plan_retrieval_quota: Option<i64>,
#[serde(default)]
pub plan_graph_enabled: bool,
#[serde(default)]
pub plan_node_partitioning: bool,
pub status: TenantStatus,
pub created_at: DateTime<Utc>,
}Source: minds-rust-sdk/src/control_plane/types.rs:230.
DeleteTenantResponse
pub struct DeleteTenantResponse {
pub id: String,
pub status: TenantStatus,
pub deleted_at: DateTime<Utc>,
#[serde(skip_serializing_if = "Option::is_none")]
pub data_retained_until: Option<DateTime<Utc>>,
}Source: minds-rust-sdk/src/control_plane/types.rs:254.
TenantHealthCheck
pub struct TenantHealthCheck {
pub instance_reachable: bool,
pub database_connected: bool,
pub storage_accessible: bool,
pub dns_resolved: bool,
pub tls_valid: bool,
#[serde(skip_serializing_if = "Option::is_none")]
pub last_health_check: Option<DateTime<Utc>>,
}Source: minds-rust-sdk/src/control_plane/types.rs:264.
CurrentOperation
pub struct CurrentOperation {
#[serde(rename = "type")]
pub operation_type: String,
pub started_at: DateTime<Utc>,
pub progress_percent: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:276.
TenantStatusResponse
pub struct TenantStatusResponse {
pub id: String,
pub status: TenantStatus,
pub health: TenantHealthCheck,
#[serde(skip_serializing_if = "Option::is_none")]
pub current_operation: Option<CurrentOperation>,
}Source: minds-rust-sdk/src/control_plane/types.rs:285.
BackupStatus
pub enum BackupStatus {
Creating,
Completed,
Failed,
Deleting,
}Source: minds-rust-sdk/src/control_plane/types.rs:300.
BackupMetadata
pub struct BackupMetadata {
pub storage_path: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub checksum: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub compression_type: Option<String>,
#[serde(flatten)]
pub extra: HashMap<String, serde_json::Value>,
}Source: minds-rust-sdk/src/control_plane/types.rs:309.
Backup
pub struct Backup {
pub id: String,
pub tenant_id: String,
pub name: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
pub size_gb: f64,
pub created_at: DateTime<Utc>,
#[serde(skip_serializing_if = "Option::is_none")]
pub completed_at: Option<DateTime<Utc>>,
pub status: BackupStatus,
pub retention_until: DateTime<Utc>,
#[serde(skip_serializing_if = "Option::is_none")]
pub metadata: Option<BackupMetadata>,
}Source: minds-rust-sdk/src/control_plane/types.rs:321.
CreateBackupRequest
pub struct CreateBackupRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
}Source: minds-rust-sdk/src/control_plane/types.rs:339.
CreateBackupResponse
pub struct CreateBackupResponse {
pub backup_id: String,
pub tenant_id: String,
pub status: BackupStatus,
pub created_at: DateTime<Utc>,
pub estimated_duration: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:348.
ListBackupsResponse
pub struct ListBackupsResponse {
pub backups: Vec<Backup>,
}Source: minds-rust-sdk/src/control_plane/types.rs:358.
RestoreBackupRequest
pub struct RestoreBackupRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub create_new_instance: Option<bool>,
}Source: minds-rust-sdk/src/control_plane/types.rs:364.
RestoreBackupResponse
pub struct RestoreBackupResponse {
pub restore_id: String,
pub tenant_id: String,
pub backup_id: String,
pub status: String,
pub estimated_duration: i32,
#[serde(skip_serializing_if = "Option::is_none")]
pub new_tenant_id: Option<String>,
}Source: minds-rust-sdk/src/control_plane/types.rs:371.
MetricsPeriod
pub enum MetricsPeriod {
FiveMinutes,
OneHour,
TwentyFourHours,
SevenDays,
ThirtyDays,
}Source: minds-rust-sdk/src/control_plane/types.rs:387.
ComputeMetrics
pub struct ComputeMetrics {
pub cpu_usage_percent: f64,
pub memory_usage_mb: f64,
pub memory_total_mb: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:409.
StorageMetrics
pub struct StorageMetrics {
pub used_gb: f64,
pub total_gb: f64,
pub shards: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:417.
PerformanceMetrics
pub struct PerformanceMetrics {
pub requests_per_sec: f64,
pub avg_latency_ms: f64,
pub p95_latency_ms: f64,
pub p99_latency_ms: f64,
pub error_rate_percent: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:425.
CognitiveMetrics
pub struct CognitiveMetrics {
pub hrm_inferences_per_sec: f64,
pub vector_searches_per_sec: f64,
pub graph_queries_per_sec: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:435.
Metrics
pub struct Metrics {
pub compute: ComputeMetrics,
pub storage: StorageMetrics,
pub performance: PerformanceMetrics,
pub cognitive: CognitiveMetrics,
}Source: minds-rust-sdk/src/control_plane/types.rs:443.
MetricsResponse
pub struct MetricsResponse {
pub tenant_id: String,
pub period: String,
pub timestamp: DateTime<Utc>,
pub metrics: Metrics,
}Source: minds-rust-sdk/src/control_plane/types.rs:452.
HealthStatus
pub enum HealthStatus {
Healthy,
Degraded,
Down,
}Source: minds-rust-sdk/src/control_plane/types.rs:462.
HealthChecks
pub struct HealthChecks {
pub instance_reachable: bool,
pub database_connected: bool,
pub storage_accessible: bool,
pub dns_resolved: bool,
pub tls_valid: bool,
}Source: minds-rust-sdk/src/control_plane/types.rs:470.
HealthResponse
pub struct HealthResponse {
pub tenant_id: String,
pub status: HealthStatus,
pub checks: HealthChecks,
pub last_check: DateTime<Utc>,
pub uptime_percent: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:480.
UsageMetric
pub struct UsageMetric {
pub current: f64,
pub included: f64,
pub overage: f64,
pub cost: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:494.
BillingPeriod
pub struct BillingPeriod {
pub start: DateTime<Utc>,
pub end: DateTime<Utc>,
pub days_elapsed: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:503.
CountUsage
pub struct CountUsage {
pub total: i64,
pub cost: f64,
}Source: minds-rust-sdk/src/control_plane/types.rs:511.
Usage
pub struct Usage {
pub storage_gb: UsageMetric,
pub requests: UsageMetric,
pub hrm_inferences: UsageMetric,
pub vector_searches: CountUsage,
pub graph_queries: CountUsage,
}Source: minds-rust-sdk/src/control_plane/types.rs:518.
EstimatedCost
pub struct EstimatedCost {
pub base: f64,
pub usage: f64,
pub total: f64,
pub currency: String,
}Source: minds-rust-sdk/src/control_plane/types.rs:528.
UsageResponse
pub struct UsageResponse {
pub tenant_id: String,
pub plan: TenantPlan,
pub billing_period: BillingPeriod,
pub usage: Usage,
pub estimated_cost: EstimatedCost,
}Source: minds-rust-sdk/src/control_plane/types.rs:537.
ScaleRequest
pub struct ScaleRequest {
#[serde(skip_serializing_if = "Option::is_none")]
pub replicas: Option<i32>,
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_limit: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub memory_limit: Option<String>,
}Source: minds-rust-sdk/src/control_plane/types.rs:551.
ScaleResponse
pub struct ScaleResponse {
pub operation_id: String,
pub status: String,
pub target_replicas: i32,
pub estimated_duration: i32,
}Source: minds-rust-sdk/src/control_plane/types.rs:562.
GenerateTokenResponse
pub struct GenerateTokenResponse {
pub token: String,
pub expires_at: DateTime<Utc>,
pub scopes: Vec<String>,
}Source: minds-rust-sdk/src/control_plane/types.rs:575.
src/error.rs
SdkError
pub enum SdkError {
#[error("http error: {0}")]
Http(#[from] reqwest::Error),
#[error("serialization error: {0}")]
Serde(#[from] serde_json::Error),
#[error("invalid configuration: {0}")]
Config(String),
#[error("api error {code}: {message}")]
Api { code: u16, message: String },
#[error("transport error: {0}")]
Transport(String),
}Source: minds-rust-sdk/src/error.rs:5.
Result<T>
pub type Result<T> = std::result::Result<T, SdkError>;Source: minds-rust-sdk/src/error.rs:23.
src/lib.rs
client_from_uri
pub async fn client_from_uri(
uri: &str,
token: Option<String>,
namespace: Option<Namespace>,
) -> crate::error::Result<crate::clients::AkashaClient>Source: minds-rust-sdk/src/lib.rs:45.
clients
pub mod clients;Source: minds-rust-sdk/src/lib.rs:27.
control_plane
pub mod control_plane;Source: minds-rust-sdk/src/lib.rs:29.
error
pub mod error;Source: minds-rust-sdk/src/lib.rs:30.
namespace
pub mod namespace;Source: minds-rust-sdk/src/lib.rs:31.
resolver
pub mod resolver;Source: minds-rust-sdk/src/lib.rs:32.
transport
pub mod transport;Source: minds-rust-sdk/src/lib.rs:33.
router_client
pub mod router_client;Source: minds-rust-sdk/src/lib.rs:36.
connect
pub mod connect {
use crate::namespace::Namespace;Source: minds-rust-sdk/src/lib.rs:39.
clients
pub use clients::*;Source: minds-rust-sdk/src/lib.rs:58.
src/namespace.rs
Namespace::headers
pub fn headers(&self) -> impl Iterator<Item = (&str, String)> + '_Source: minds-rust-sdk/src/namespace.rs:14.
Namespace
pub struct Namespace {
pub tenant_id: Option<String>,
pub reservoir_id: Option<String>,
pub agent_id: Option<String>,
pub dataspace_id: Option<String>,
}Source: minds-rust-sdk/src/namespace.rs:5.
src/resolver.rs
resolve_base_url
pub async fn resolve_base_url(input: &str) -> SdkResult<Url>Source: minds-rust-sdk/src/resolver.rs:7.
src/router_client.rs
connect
pub async fn connect<D: AsRef<str>>(dest: D, tls: bool) -> Result<Self>Source: minds-rust-sdk/src/router_client.rs:21.
query_capabilities
pub async fn query_capabilities(
&mut self,
capability: &str,
specializations: &[String],
max_results: u32,
) -> Result<QueryCapabilitiesResponse>Source: minds-rust-sdk/src/router_client.rs:41.
route_task
pub async fn route_task(
&mut self,
requirements: Vec<RouteRequirement>,
) -> Result<TaskRoutePlan>Source: minds-rust-sdk/src/router_client.rs:67.
connect
pub async fn connect<D: AsRef<str>>(_dest: D, _tls: bool) -> Result<Self>Source: minds-rust-sdk/src/router_client.rs:97.
RouterGrpcClient
pub struct RouterGrpcClient {
client: KnowledgeRouterClient<Channel>,
}Source: minds-rust-sdk/src/router_client.rs:16.
Client
pub struct Client;Source: minds-rust-sdk/src/router_client.rs:95.
pb
pub mod pb {
tonic::include_proto!("akasha.router.v1");Source: minds-rust-sdk/src/router_client.rs:9.
RouterGrpcClient
pub use RouterGrpcClient as Client;Source: minds-rust-sdk/src/router_client.rs:87.
inner
pub use inner::Client as RouterClient;Source: minds-rust-sdk/src/router_client.rs:102.
inner
pub use inner::pb as router_pb;Source: minds-rust-sdk/src/router_client.rs:106.
src/transport.rs
HttpConfig::new
pub fn new(base_url: Url) -> SelfSource: minds-rust-sdk/src/transport.rs:34.
Http::new
pub fn new(cfg: HttpConfig) -> Result<Self>Source: minds-rust-sdk/src/transport.rs:52.
Http::get
pub async fn get<T: DeserializeOwned>(&self, path: &str) -> Result<T>Source: minds-rust-sdk/src/transport.rs:147.
Http::post
pub async fn post<T: DeserializeOwned, B: Serialize + ?Sized>(
&self,
path: &str,
body: &B,
) -> Result<T>Source: minds-rust-sdk/src/transport.rs:150.
Http::put
pub async fn put<T: DeserializeOwned, B: Serialize + ?Sized>(
&self,
path: &str,
body: &B,
) -> Result<T>Source: minds-rust-sdk/src/transport.rs:157.
Http::patch
pub async fn patch<T: DeserializeOwned, B: Serialize + ?Sized>(
&self,
path: &str,
body: &B,
) -> Result<T>Source: minds-rust-sdk/src/transport.rs:164.
Http::delete
pub async fn delete<T: DeserializeOwned>(&self, path: &str) -> Result<T>Source: minds-rust-sdk/src/transport.rs:171.
CapabilityTokenPayload
pub struct CapabilityTokenPayload {
pub namespace: Option<String>,
pub tenant_id: Option<String>,
pub reservoir_id: Option<String>,
pub agent_id: Option<String>,
pub dataspace_id: Option<String>,
#[serde(default)]
pub actions: Vec<String>,
pub keyspaces: Option<Vec<String>>,
}Source: minds-rust-sdk/src/transport.rs:13.
HttpConfig
pub struct HttpConfig {
pub base_url: Url,
pub token: Option<String>,
pub timeout: Duration,
pub namespace: Option<Namespace>,
}Source: minds-rust-sdk/src/transport.rs:26.
Http
pub struct Http {
pub(crate) client: Client,
pub(crate) cfg: HttpConfig,
}Source: minds-rust-sdk/src/transport.rs:46.