# Rust SDK reference

Every discovered public declaration and client signature in the local rust SDK source.

Source: https://docs.minds.sh/docs/developers/reference/rust



This reference lists **294 source declarations** from **10 files**. It preserves signatures and types rather than assuming identical APIs across languages. See [SDK compatibility](/docs/developers/compatibility) before using a method against a deployed instance.

## src/clients.rs [#srcclientsrs]

### `AkashaClient::new` [#akashaclientnew]

```rust
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` [#akashaclientpost_json]

```rust
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` [#akashaclientput_json]

```rust
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` [#akashaclientpatch_json]

```rust
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` [#akashaclientdelete_json]

```rust
pub async fn delete_json<R: DeserializeOwned>(&self, path: &str) -> Result<R>
```

Source: `minds-rust-sdk/src/clients.rs:360`.

### `AkashaClient::get_json` [#akashaclientget_json]

```rust
pub async fn get_json<R: DeserializeOwned>(&self, path: &str) -> Result<R>
```

Source: `minds-rust-sdk/src/clients.rs:364`.

### `CoreClient::list_keyspaces` [#coreclientlist_keyspaces]

```rust
pub async fn list_keyspaces(&self) -> Result<Vec<KeyspaceInfo>>
```

Source: `minds-rust-sdk/src/clients.rs:381`.

### `CoreClient::create_keyspace` [#coreclientcreate_keyspace]

```rust
pub async fn create_keyspace(&self, name: &str, model: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:384`.

### `CoreClient::import_domain_primitives` [#coreclientimport_domain_primitives]

```rust
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` [#coreclientexport_domain_primitives]

```rust
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` [#coreclientbackup_create]

```rust
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` [#coreclientbackup_list]

```rust
pub async fn backup_list(&self, backup_dir: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:460`.

### `CoreClient::backup_delete` [#coreclientbackup_delete]

```rust
pub async fn backup_delete(&self, backup_dir: &str, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:471`.

### `CoreClient::backup_restore` [#coreclientbackup_restore]

```rust
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` [#coreclientkv_health]

```rust
pub async fn kv_health(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:508`.

### `CoreClient::kv_consistency` [#coreclientkv_consistency]

```rust
pub async fn kv_consistency(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:512`.

### `CoreClient::storage_volume_create` [#coreclientstorage_volume_create]

```rust
pub async fn storage_volume_create(&self, payload: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:516`.

### `CoreClient::storage_volume_list` [#coreclientstorage_volume_list]

```rust
pub async fn storage_volume_list(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:520`.

### `CoreClient::storage_volume_attach` [#coreclientstorage_volume_attach]

```rust
pub async fn storage_volume_attach(&self, payload: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:524`.

### `CoreClient::storage_volume_detach` [#coreclientstorage_volume_detach]

```rust
pub async fn storage_volume_detach(&self, payload: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:528`.

### `CoreClient::storage_volume_delete` [#coreclientstorage_volume_delete]

```rust
pub async fn storage_volume_delete(&self, volume_id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:532`.

### `CoreClient::stats` [#coreclientstats]

```rust
pub async fn stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:537`.

### `GraphClient::cypher` [#graphclientcypher]

```rust
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` [#graphclienttext_search]

```rust
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` [#graphclientensure_property_index]

```rust
pub async fn ensure_property_index(&self, property: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:565`.

### `GraphClient::index_stats` [#graphclientindex_stats]

```rust
pub async fn index_stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:574`.

### `GraphClient::pagerank` [#graphclientpagerank]

```rust
pub async fn pagerank(&self, damping_factor: Option<f64>) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:577`.

### `GraphClient::shortest_path` [#graphclientshortest_path]

```rust
pub async fn shortest_path(&self, source: &str, target: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:586`.

### `GraphClient::connected_components` [#graphclientconnected_components]

```rust
pub async fn connected_components(&self, strong: bool) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:596`.

### `GraphClient::microtheory_switch` [#graphclientmicrotheory_switch]

```rust
pub async fn microtheory_switch(&self, name: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:605`.

### `GraphClient::microtheory_keyspace` [#graphclientmicrotheory_keyspace]

```rust
pub async fn microtheory_keyspace(&self, name: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:614`.

### `GraphClient::schema_metadata` [#graphclientschema_metadata]

```rust
pub async fn schema_metadata(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:623`.

### `AnalyticsClient::sql` [#analyticsclientsql]

```rust
pub async fn sql(&self, query: &str) -> Result<Vec<Value>>
```

Source: `minds-rust-sdk/src/clients.rs:634`.

### `AnalyticsClient::register_csv` [#analyticsclientregister_csv]

```rust
pub async fn register_csv(&self, name: &str, path: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:641`.

### `AnalyticsClient::register_parquet` [#analyticsclientregister_parquet]

```rust
pub async fn register_parquet(&self, name: &str, path: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:651`.

### `AnalyticsClient::options` [#analyticsclientoptions]

```rust
pub async fn options(&self, opts: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:661`.

### `AnalyticsClient::cache_clear` [#analyticsclientcache_clear]

```rust
pub async fn cache_clear(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:664`.

### `AnalyticsClient::cache_stats` [#analyticsclientcache_stats]

```rust
pub async fn cache_stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:669`.

### `MlClient::embed` [#mlclientembed]

```rust
pub async fn embed(&self, text: &str) -> Result<Vec<f32>>
```

Source: `minds-rust-sdk/src/clients.rs:689`.

### `MlClient::generate` [#mlclientgenerate]

```rust
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` [#mlclientmodels]

```rust
pub async fn models(&self) -> Result<Vec<String>>
```

Source: `minds-rust-sdk/src/clients.rs:733`.

### `MlClient::load_model_from_path` [#mlclientload_model_from_path]

```rust
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` [#mlclientload_model_from_b64]

```rust
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` [#mlclientunload_model]

```rust
pub async fn unload_model(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:805`.

### `MlClient::vector_create` [#mlclientvector_create]

```rust
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` [#mlclientvector_add]

```rust
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` [#mlclientvector_search]

```rust
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` [#mlclientvector_save]

```rust
pub async fn vector_save(&self, name: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:845`.

### `MlClient::vector_list` [#mlclientvector_list]

```rust
pub async fn vector_list(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:852`.

### `MlClient::metrics` [#mlclientmetrics]

```rust
pub async fn metrics(&self, model_id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:855`.

### `MlClient::generate_stream` [#mlclientgenerate_stream]

```rust
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` [#memoryclientsearch]

```rust
pub async fn search(&self, q: &str, limit: usize) -> Result<Vec<Value>>
```

Source: `minds-rust-sdk/src/clients.rs:911`.

### `MemoryClient::episodic_delete` [#memoryclientepisodic_delete]

```rust
pub async fn episodic_delete(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:921`.

### `MemoryClient::episodic_store` [#memoryclientepisodic_store]

```rust
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` [#memoryclientretrieval_hybrid]

```rust
pub async fn retrieval_hybrid(&self, text: &str, limit: Option<usize>) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:936`.

### `MemoryClient::vault_search` [#memoryclientvault_search]

```rust
pub async fn vault_search(&self, pattern: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:947`.

### `MemoryClient::vault_get` [#memoryclientvault_get]

```rust
pub async fn vault_get(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:956`.

### `MemoryClient::vault_delete` [#memoryclientvault_delete]

```rust
pub async fn vault_delete(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:963`.

### `MemoryClient::vault_stats` [#memoryclientvault_stats]

```rust
pub async fn vault_stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:970`.

### `AssocMhnClient::new_network` [#assocmhnclientnew_network]

```rust
pub async fn new_network(&self, config: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:981`.

### `AssocMhnClient::store` [#assocmhnclientstore]

```rust
pub async fn store(&self, id: &str, vector: &[f32]) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:984`.

### `AssocMhnClient::retrieve_by_key` [#assocmhnclientretrieve_by_key]

```rust
pub async fn retrieve_by_key(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:994`.

### `AssocMhnClient::retrieve_by_vector` [#assocmhnclientretrieve_by_vector]

```rust
pub async fn retrieve_by_vector(&self, vector: &[f32], k: usize) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1003`.

### `AssocMhnClient::clear` [#assocmhnclientclear]

```rust
pub async fn clear(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1013`.

### `AssocMhnClient::stats` [#assocmhnclientstats]

```rust
pub async fn stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1018`.

### `AssocMhnClient::config` [#assocmhnclientconfig]

```rust
pub async fn config(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1021`.

### `AssocMhnClient::system_info` [#assocmhnclientsystem_info]

```rust
pub async fn system_info(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1024`.

### `AssocMhnClient::new_network_typed` [#assocmhnclientnew_network_typed]

```rust
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` [#assocmhnclientstore_typed]

```rust
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` [#assocmhnclientretrieve_by_key_typed]

```rust
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` [#assocmhnclientretrieve_by_vector_typed]

```rust
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` [#assocmhnclientclear_typed]

```rust
pub async fn clear_typed(&self) -> Result<v1::mhn::ClearResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1052`.

### `AssocMhnClient::stats_typed` [#assocmhnclientstats_typed]

```rust
pub async fn stats_typed(&self) -> Result<v1::mhn::StatsResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1057`.

### `AssocMhnClient::config_typed` [#assocmhnclientconfig_typed]

```rust
pub async fn config_typed(&self) -> Result<v1::mhn::ConfigResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1060`.

### `AssocMhnClient::system_info_typed` [#assocmhnclientsystem_info_typed]

```rust
pub async fn system_info_typed(&self) -> Result<v1::mhn::SystemInfoResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1063`.

### `CognitiveClient::thought` [#cognitiveclientthought]

```rust
pub async fn thought(&self, thought: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1074`.

### `CognitiveClient::decision` [#cognitiveclientdecision]

```rust
pub async fn decision(&self, decision: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1079`.

### `CognitiveClient::interaction` [#cognitiveclientinteraction]

```rust
pub async fn interaction(&self, interaction: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1084`.

### `CognitiveClient::session` [#cognitiveclientsession]

```rust
pub async fn session(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1089`.

### `CognitiveClient::session_update` [#cognitiveclientsession_update]

```rust
pub async fn session_update(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1092`.

### `CognitiveClient::query` [#cognitiveclientquery]

```rust
pub async fn query(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1097`.

### `CognitiveClient::decision_trace` [#cognitiveclientdecision_trace]

```rust
pub async fn decision_trace(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1100`.

### `CognitiveClient::thought_typed` [#cognitiveclientthought_typed]

```rust
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` [#cognitiveclientdecision_typed]

```rust
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` [#cognitiveclientinteraction_typed]

```rust
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` [#cognitiveclientsession_typed]

```rust
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` [#cognitiveclientsession_update_typed]

```rust
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` [#cognitiveclientquery_typed]

```rust
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` [#cognitiveclientdecision_trace_typed]

```rust
pub async fn decision_trace_typed(
        &self,
        id: &str,
    ) -> Result<v1::cognitive::DecisionTraceResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1185`.

### `CycleClient::start` [#cycleclientstart]

```rust
pub async fn start(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1205`.

### `CycleClient::stop` [#cycleclientstop]

```rust
pub async fn stop(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1210`.

### `CycleClient::metrics` [#cycleclientmetrics]

```rust
pub async fn metrics(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1215`.

### `CycleClient::reinforce` [#cycleclientreinforce]

```rust
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` [#cycleclientexperience]

```rust
pub async fn experience(&self, content: &str, context: Option<&str>) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1242`.

### `CycleClient::start_typed` [#cycleclientstart_typed]

```rust
pub async fn start_typed(&self) -> Result<v1::cycle::StartResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1255`.

### `CycleClient::stop_typed` [#cycleclientstop_typed]

```rust
pub async fn stop_typed(&self) -> Result<v1::cycle::StopResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1260`.

### `CycleClient::metrics_typed` [#cycleclientmetrics_typed]

```rust
pub async fn metrics_typed(&self) -> Result<v1::cycle::MetricsResponse>
```

Source: `minds-rust-sdk/src/clients.rs:1265`.

### `CycleClient::reinforce_typed` [#cycleclientreinforce_typed]

```rust
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` [#cycleclientexperience_typed]

```rust
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` [#continualclientcheckpoints]

```rust
pub async fn checkpoints(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1315`.

### `ContinualClient::checkpoints_status` [#continualclientcheckpoints_status]

```rust
pub async fn checkpoints_status(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1318`.

### `ContinualClient::recover` [#continualclientrecover]

```rust
pub async fn recover(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1321`.

### `ContinualClient::components` [#continualclientcomponents]

```rust
pub async fn components(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1324`.

### `ContinualClient::delete_component` [#continualclientdelete_component]

```rust
pub async fn delete_component(&self, id: &str) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1327`.

### `SnnClient::network_build` [#snnclientnetwork_build]

```rust
pub async fn network_build(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1386`.

### `SnnClient::network_compile` [#snnclientnetwork_compile]

```rust
pub async fn network_compile(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1389`.

### `SnnClient::network_step` [#snnclientnetwork_step]

```rust
pub async fn network_step(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1392`.

### `SnnClient::train_bptt` [#snnclienttrain_bptt]

```rust
pub async fn train_bptt(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1395`.

### `SnnClient::network_state` [#snnclientnetwork_state]

```rust
pub async fn network_state(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1398`.

### `SnnClient::federation_agent_update` [#snnclientfederation_agent_update]

```rust
pub async fn federation_agent_update(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1402`.

### `SnnClient::federation_agent_remove` [#snnclientfederation_agent_remove]

```rust
pub async fn federation_agent_remove(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1406`.

### `SnnClient::federation_recent_spikes` [#snnclientfederation_recent_spikes]

```rust
pub async fn federation_recent_spikes(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1410`.

### `NeuroSymbolicClient::retrieve` [#neurosymbolicclientretrieve]

```rust
pub async fn retrieve(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1421`.

### `NeuroSymbolicClient::retrieve_with_mode` [#neurosymbolicclientretrieve_with_mode]

```rust
pub async fn retrieve_with_mode(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1424`.

### `NeuroSymbolicClient::paths_find` [#neurosymbolicclientpaths_find]

```rust
pub async fn paths_find(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1427`.

### `NeuroSymbolicClient::prefetch_start` [#neurosymbolicclientprefetch_start]

```rust
pub async fn prefetch_start(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1430`.

### `NeuroSymbolicClient::prefetch_stop` [#neurosymbolicclientprefetch_stop]

```rust
pub async fn prefetch_stop(&self, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1433`.

### `NeuroSymbolicClient::cache_stats` [#neurosymbolicclientcache_stats]

```rust
pub async fn cache_stats(&self) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1436`.

### `NeuroSymbolicClient::cb_execute` [#neurosymbolicclientcb_execute]

```rust
pub async fn cb_execute(&self, name: &str, req: &Value) -> Result<Value>
```

Source: `minds-rust-sdk/src/clients.rs:1439`.

### `CognitiveThought` [#cognitivethought]

```rust
        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` [#thoughttype]

```rust
        pub enum ThoughtType {
            ProblemAnalysis,
            Hypothesis,
            EvidenceEvaluation,
            Reasoning,
            Decision,
            Planning,
            Reflection,
            ErrorDetection,
            Learning,
            Communication,
        }
```

Source: `minds-rust-sdk/src/clients.rs:33`.

### `DecisionOption` [#decisionoption]

```rust
        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` [#cognitivedecision]

```rust
        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` [#interactiontype]

```rust
        pub enum InteractionType {
            Query,
            Request,
            Inform,
            Delegate,
            Collaborate,
            Negotiate,
            Conflict,
            Consensus,
        }
```

Source: `minds-rust-sdk/src/clients.rs:69`.

### `InteractionResponse` [#interactionresponse]

```rust
        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` [#agentinteraction]

```rust
        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` [#cognitivesession]

```rust
        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` [#sessionoutcome]

```rust
        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` [#cognitivequery]

```rust
        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` [#idresponse]

```rust
        pub struct IdResponse {
            pub id: String,
        }
```

Source: `minds-rust-sdk/src/clients.rs:135`.

### `SessionStartResponse` [#sessionstartresponse]

```rust
        pub struct SessionStartResponse {
            pub session: CognitiveSession,
        }
```

Source: `minds-rust-sdk/src/clients.rs:140`.

### `QueryResponse` [#queryresponse]

```rust
        pub struct QueryResponse {
            pub thoughts: usize,
            pub decisions: usize,
            pub interactions: usize,
            pub sessions: usize,
        }
```

Source: `minds-rust-sdk/src/clients.rs:145`.

### `DecisionTraceResponse` [#decisiontraceresponse]

```rust
        pub struct DecisionTraceResponse {
            pub length: usize,
        }
```

Source: `minds-rust-sdk/src/clients.rs:153`.

### `StartResponse` [#startresponse]

```rust
        pub struct StartResponse {
            pub running: bool,
        }
```

Source: `minds-rust-sdk/src/clients.rs:163`.

### `StopResponse` [#stopresponse]

```rust
        pub struct StopResponse {
            pub stopped: bool,
        }
```

Source: `minds-rust-sdk/src/clients.rs:168`.

### `OkResponse` [#okresponse]

```rust
        pub struct OkResponse {
            pub ok: bool,
        }
```

Source: `minds-rust-sdk/src/clients.rs:173`.

### `ExperienceResponse` [#experienceresponse]

```rust
        pub struct ExperienceResponse {
            pub trace_id: String,
            pub action: String,
        }
```

Source: `minds-rust-sdk/src/clients.rs:178`.

### `StageStats` [#stagestats]

```rust
        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` [#metricsresponse]

```rust
        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` [#rewardstats]

```rust
        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` [#newrequest]

```rust
        pub struct NewRequest {
            pub dimensions: usize,
        }
```

Source: `minds-rust-sdk/src/clients.rs:218`.

### `NewResponse` [#newresponse]

```rust
        pub struct NewResponse {
            pub ok: bool,
            pub dims: usize,
        }
```

Source: `minds-rust-sdk/src/clients.rs:223`.

### `StoreRequest` [#storerequest]

```rust
        pub struct StoreRequest {
            pub id: String,
            pub vector: Vec<f32>,
        }
```

Source: `minds-rust-sdk/src/clients.rs:229`.

### `StoreResponse` [#storeresponse]

```rust
        pub struct StoreResponse {
            pub id: String,
        }
```

Source: `minds-rust-sdk/src/clients.rs:235`.

### `RetrieveByKeyRequest` [#retrievebykeyrequest]

```rust
        pub struct RetrieveByKeyRequest {
            pub id: String,
        }
```

Source: `minds-rust-sdk/src/clients.rs:240`.

### `RetrieveByVectorRequest` [#retrievebyvectorrequest]

```rust
        pub struct RetrieveByVectorRequest {
            pub vector: Vec<f32>,
            pub k: Option<usize>,
        }
```

Source: `minds-rust-sdk/src/clients.rs:245`.

### `RetrieveResponse` [#retrieveresponse]

```rust
        pub struct RetrieveResponse {
            pub id: String,
            pub embedding: Vec<f32>,
        }
```

Source: `minds-rust-sdk/src/clients.rs:251`.

### `Neighbor` [#neighbor]

```rust
        pub struct Neighbor {
            pub id: String,
            pub score: f64,
        }
```

Source: `minds-rust-sdk/src/clients.rs:257`.

### `NeighborsResponse` [#neighborsresponse]

```rust
        pub struct NeighborsResponse {
            pub neighbors: Vec<Neighbor>,
        }
```

Source: `minds-rust-sdk/src/clients.rs:263`.

### `ClearResponse` [#clearresponse]

```rust
        pub struct ClearResponse {
            pub ok: bool,
        }
```

Source: `minds-rust-sdk/src/clients.rs:268`.

### `StatsResponse` [#statsresponse]

```rust
        pub struct StatsResponse {
            pub count: usize,
        }
```

Source: `minds-rust-sdk/src/clients.rs:273`.

### `ConfigResponse` [#configresponse]

```rust
        pub struct ConfigResponse {
            pub dimensions: Option<usize>,
            pub persistence: bool,
        }
```

Source: `minds-rust-sdk/src/clients.rs:278`.

### `SystemInfoResponse` [#systeminforesponse]

```rust
        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` [#akashaclient]

```rust
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` [#coreclient]

```rust
pub struct CoreClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:370`.

### `KeyspaceInfo` [#keyspaceinfo]

```rust
pub struct KeyspaceInfo {
    pub name: String,
    pub model: String,
}
```

Source: `minds-rust-sdk/src/clients.rs:375`.

### `GraphClient` [#graphclient]

```rust
pub struct GraphClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:543`.

### `AnalyticsClient` [#analyticsclient]

```rust
pub struct AnalyticsClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:629`.

### `MlClient` [#mlclient]

```rust
pub struct MlClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:677`.

### `ModelInfo` [#modelinfo]

```rust
pub struct ModelInfo {
    pub id: String,
    pub name: String,
    pub framework: String,
}
```

Source: `minds-rust-sdk/src/clients.rs:682`.

### `MemoryClient` [#memoryclient]

```rust
pub struct MemoryClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:906`.

### `AssocMhnClient` [#assocmhnclient]

```rust
pub struct AssocMhnClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:976`.

### `CognitiveClient` [#cognitiveclient]

```rust
pub struct CognitiveClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:1069`.

### `CycleClient` [#cycleclient]

```rust
pub struct CycleClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:1200`.

### `ContinualClient` [#continualclient]

```rust
pub struct ContinualClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:1310`.

### `SnnClient` [#snnclient]

```rust
pub struct SnnClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:1334`.

### `SnnBuildRequest` [#snnbuildrequest]

```rust
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` [#snncompilerequest]

```rust
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` [#snnsteprequest]

```rust
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` [#snntrainrequest]

```rust
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` [#snnstaterequest]

```rust
pub struct SnnStateRequest {
    pub namespace: String,
    pub actions: Vec<String>,
    pub capability: CapabilityTokenPayload,
}
```

Source: `minds-rust-sdk/src/clients.rs:1379`.

### `NeuroSymbolicClient` [#neurosymbolicclient]

```rust
pub struct NeuroSymbolicClient {
    http: Http,
}
```

Source: `minds-rust-sdk/src/clients.rs:1416`.

### `v1` [#v1]

```rust
pub mod v1 {

    /// Cognitive API types
    pub mod cognitive {
        use serde::{Deserialize, Serialize};
```

Source: `minds-rust-sdk/src/clients.rs:12`.

### `cycle` [#cycle]

```rust
    pub mod cycle {
        use serde::{Deserialize, Serialize};
```

Source: `minds-rust-sdk/src/clients.rs:159`.

### `mhn` [#mhn]

```rust
    pub mod mhn {
        use serde::{Deserialize, Serialize};
```

Source: `minds-rust-sdk/src/clients.rs:214`.

## src/control\_plane/client.rs [#srccontrol_planeclientrs]

### `ControlPlaneConfig::new` [#controlplaneconfignew]

```rust
pub fn new(api_key: impl Into<String>) -> Result<Self>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:33`.

### `ControlPlaneConfig::staging` [#controlplaneconfigstaging]

```rust
pub fn staging(api_key: impl Into<String>) -> Result<Self>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:44`.

### `ControlPlaneConfig::with_base_url` [#controlplaneconfigwith_base_url]

```rust
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` [#controlplaneconfigwith_timeout]

```rust
pub fn with_timeout(mut self, timeout: Duration) -> Self
```

Source: `minds-rust-sdk/src/control_plane/client.rs:62`.

### `TenantClient::list` [#tenantclientlist]

```rust
pub async fn list(&self, query: Option<&ListTenantsQuery>) -> Result<ListTenantsResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:167`.

### `TenantClient::create` [#tenantclientcreate]

```rust
pub async fn create(&self, request: &CreateTenantRequest) -> Result<CreateTenantResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:191`.

### `TenantClient::get` [#tenantclientget]

```rust
pub async fn get(&self, tenant_id: &str) -> Result<Tenant>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:196`.

### `TenantClient::update` [#tenantclientupdate]

```rust
pub async fn update(
        &self,
        tenant_id: &str,
        request: &UpdateTenantRequest,
    ) -> Result<UpdateTenantResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:202`.

### `TenantClient::delete` [#tenantclientdelete]

```rust
pub async fn delete(&self, tenant_id: &str, force: bool) -> Result<DeleteTenantResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:212`.

### `TenantClient::status` [#tenantclientstatus]

```rust
pub async fn status(&self, tenant_id: &str) -> Result<TenantStatusResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:221`.

### `TenantClient::scale` [#tenantclientscale]

```rust
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` [#tenantclientgenerate_token]

```rust
pub async fn generate_token(&self, tenant_id: &str) -> Result<GenerateTokenResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:233`.

### `BackupClient::list` [#backupclientlist]

```rust
pub async fn list(&self, tenant_id: &str) -> Result<ListBackupsResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:246`.

### `BackupClient::create` [#backupclientcreate]

```rust
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` [#backupclientget]

```rust
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` [#backupclientrestore]

```rust
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` [#backupclientdelete]

```rust
pub async fn delete(&self, tenant_id: &str, backup_id: &str) -> Result<()>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:289`.

### `MonitoringClient::health` [#monitoringclienthealth]

```rust
pub async fn health(&self, tenant_id: &str) -> Result<HealthResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:307`.

### `MonitoringClient::metrics` [#monitoringclientmetrics]

```rust
pub async fn metrics(&self, tenant_id: &str, period: MetricsPeriod) -> Result<MetricsResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:313`.

### `MonitoringClient::usage` [#monitoringclientusage]

```rust
pub async fn usage(&self, tenant_id: &str) -> Result<UsageResponse>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:323`.

### `MonitoringClient::wait_for_active` [#monitoringclientwait_for_active]

```rust
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` [#controlplaneclientnew]

```rust
pub fn new(config: ControlPlaneConfig) -> Result<Self>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:406`.

### `ControlPlaneClient::from_env` [#controlplaneclientfrom_env]

```rust
pub fn from_env() -> Result<Self>
```

Source: `minds-rust-sdk/src/control_plane/client.rs:414`.

### `ControlPlaneClient::tenants` [#controlplaneclienttenants]

```rust
pub fn tenants(&self) -> TenantClient
```

Source: `minds-rust-sdk/src/control_plane/client.rs:429`.

### `ControlPlaneClient::backups` [#controlplaneclientbackups]

```rust
pub fn backups(&self) -> BackupClient
```

Source: `minds-rust-sdk/src/control_plane/client.rs:439`.

### `ControlPlaneClient::monitoring` [#controlplaneclientmonitoring]

```rust
pub fn monitoring(&self) -> MonitoringClient
```

Source: `minds-rust-sdk/src/control_plane/client.rs:449`.

### `ControlPlaneClient::provision` [#controlplaneclientprovision]

```rust
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` [#controlplaneconfig]

```rust
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` [#tenantclient]

```rust
pub struct TenantClient {
    http: ControlPlaneHttp,
}
```

Source: `minds-rust-sdk/src/control_plane/client.rs:161`.

### `BackupClient` [#backupclient]

```rust
pub struct BackupClient {
    http: ControlPlaneHttp,
}
```

Source: `minds-rust-sdk/src/control_plane/client.rs:240`.

### `MonitoringClient` [#monitoringclient]

```rust
pub struct MonitoringClient {
    http: ControlPlaneHttp,
}
```

Source: `minds-rust-sdk/src/control_plane/client.rs:301`.

### `ControlPlaneClient` [#controlplaneclient]

```rust
pub struct ControlPlaneClient {
    http: ControlPlaneHttp,
}
```

Source: `minds-rust-sdk/src/control_plane/client.rs:400`.

## src/control\_plane/mod.rs [#srccontrol_planemodrs]

### `client` [#client]

```rust

pub use client::{
    BackupClient, ControlPlaneClient, ControlPlaneConfig, MonitoringClient, TenantClient,
};
```

Source: `minds-rust-sdk/src/control_plane/mod.rs:57`.

### `types` [#types]

```rust

pub use types::*;
```

Source: `minds-rust-sdk/src/control_plane/mod.rs:61`.

## src/control\_plane/types.rs [#srccontrol_planetypesrs]

### `CreateTenantRequest::new` [#createtenantrequestnew]

```rust
pub fn new(org_id: impl Into<String>, name: impl Into<String>, plan: TenantPlan) -> Self
```

Source: `minds-rust-sdk/src/control_plane/types.rs:136`.

### `CreateTenantRequest::with_region` [#createtenantrequestwith_region]

```rust
pub fn with_region(mut self, region: impl Into<String>) -> Self
```

Source: `minds-rust-sdk/src/control_plane/types.rs:152`.

### `CreateTenantRequest::with_slug` [#createtenantrequestwith_slug]

```rust
pub fn with_slug(mut self, slug: impl Into<String>) -> Self
```

Source: `minds-rust-sdk/src/control_plane/types.rs:157`.

### `MetricsPeriod::as_str` [#metricsperiodas_str]

```rust
pub fn as_str(&self) -> &'static str
```

Source: `minds-rust-sdk/src/control_plane/types.rs:396`.

### `TenantStatus` [#tenantstatus]

```rust
pub enum TenantStatus {
    Provisioning,
    Active,
    Scaling,
    Suspended,
    Failed,
    Deleted,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:16`.

### `TenantPlan` [#tenantplan]

```rust
pub enum TenantPlan {
    Free,
    Starter,
    Pro,
    Enterprise,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:28`.

### `ProductType` [#producttype]

```rust
pub enum ProductType {
    #[default]
    Legacy,
    MemoryCloud,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:38`.

### `TenantConfig` [#tenantconfig]

```rust
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` [#tenantmetadata]

```rust
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` [#tenantstats]

```rust
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` [#tenant]

```rust
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` [#createtenantrequest]

```rust
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` [#createtenantresponse]

```rust
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` [#updatetenantrequest]

```rust
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` [#updatetenantresponse]

```rust
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` [#listtenantsquery]

```rust
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` [#pagination]

```rust
pub struct Pagination {
    pub total: i64,
    pub limit: i32,
    pub offset: i32,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:215`.

### `ListTenantsResponse` [#listtenantsresponse]

```rust
pub struct ListTenantsResponse {
    pub tenants: Vec<TenantSummary>,
    pub pagination: Pagination,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:223`.

### `TenantSummary` [#tenantsummary]

```rust
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` [#deletetenantresponse]

```rust
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` [#tenanthealthcheck]

```rust
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` [#currentoperation]

```rust
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` [#tenantstatusresponse]

```rust
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` [#backupstatus]

```rust
pub enum BackupStatus {
    Creating,
    Completed,
    Failed,
    Deleting,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:300`.

### `BackupMetadata` [#backupmetadata]

```rust
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` [#backup]

```rust
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` [#createbackuprequest]

```rust
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` [#createbackupresponse]

```rust
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` [#listbackupsresponse]

```rust
pub struct ListBackupsResponse {
    pub backups: Vec<Backup>,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:358`.

### `RestoreBackupRequest` [#restorebackuprequest]

```rust
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` [#restorebackupresponse]

```rust
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` [#metricsperiod]

```rust
pub enum MetricsPeriod {
    FiveMinutes,
    OneHour,
    TwentyFourHours,
    SevenDays,
    ThirtyDays,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:387`.

### `ComputeMetrics` [#computemetrics]

```rust
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` [#storagemetrics]

```rust
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` [#performancemetrics]

```rust
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` [#cognitivemetrics]

```rust
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` [#metrics]

```rust
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` [#metricsresponse-1]

```rust
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` [#healthstatus]

```rust
pub enum HealthStatus {
    Healthy,
    Degraded,
    Down,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:462`.

### `HealthChecks` [#healthchecks]

```rust
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` [#healthresponse]

```rust
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` [#usagemetric]

```rust
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` [#billingperiod]

```rust
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` [#countusage]

```rust
pub struct CountUsage {
    pub total: i64,
    pub cost: f64,
}
```

Source: `minds-rust-sdk/src/control_plane/types.rs:511`.

### `Usage` [#usage]

```rust
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` [#estimatedcost]

```rust
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` [#usageresponse]

```rust
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` [#scalerequest]

```rust
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` [#scaleresponse]

```rust
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` [#generatetokenresponse]

```rust
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 [#srcerrorrs]

### `SdkError` [#sdkerror]

```rust
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>` [#resultt]

```rust
pub type Result<T> = std::result::Result<T, SdkError>;
```

Source: `minds-rust-sdk/src/error.rs:23`.

## src/lib.rs [#srclibrs]

### `client_from_uri` [#client_from_uri]

```rust
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` [#clients]

```rust

pub mod clients;
```

Source: `minds-rust-sdk/src/lib.rs:27`.

### `control_plane` [#control_plane]

```rust
pub mod control_plane;
```

Source: `minds-rust-sdk/src/lib.rs:29`.

### `error` [#error]

```rust
pub mod error;
```

Source: `minds-rust-sdk/src/lib.rs:30`.

### `namespace` [#namespace]

```rust
pub mod namespace;
```

Source: `minds-rust-sdk/src/lib.rs:31`.

### `resolver` [#resolver]

```rust
pub mod resolver;
```

Source: `minds-rust-sdk/src/lib.rs:32`.

### `transport` [#transport]

```rust
pub mod transport;
```

Source: `minds-rust-sdk/src/lib.rs:33`.

### `router_client` [#router_client]

```rust
pub mod router_client;
```

Source: `minds-rust-sdk/src/lib.rs:36`.

### `connect` [#connect]

```rust
pub mod connect {
    use crate::namespace::Namespace;
```

Source: `minds-rust-sdk/src/lib.rs:39`.

### `clients` [#clients-1]

```rust
pub use clients::*;
```

Source: `minds-rust-sdk/src/lib.rs:58`.

## src/namespace.rs [#srcnamespacers]

### `Namespace::headers` [#namespaceheaders]

```rust
pub fn headers(&self) -> impl Iterator<Item = (&str, String)> + '_
```

Source: `minds-rust-sdk/src/namespace.rs:14`.

### `Namespace` [#namespace-1]

```rust
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 [#srcresolverrs]

### `resolve_base_url` [#resolve_base_url]

```rust
pub async fn resolve_base_url(input: &str) -> SdkResult<Url>
```

Source: `minds-rust-sdk/src/resolver.rs:7`.

## src/router\_client.rs [#srcrouter_clientrs]

### `connect` [#connect-1]

```rust
pub async fn connect<D: AsRef<str>>(dest: D, tls: bool) -> Result<Self>
```

Source: `minds-rust-sdk/src/router_client.rs:21`.

### `query_capabilities` [#query_capabilities]

```rust
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` [#route_task]

```rust
pub async fn route_task(
            &mut self,
            requirements: Vec<RouteRequirement>,
        ) -> Result<TaskRoutePlan>
```

Source: `minds-rust-sdk/src/router_client.rs:67`.

### `connect` [#connect-2]

```rust
pub async fn connect<D: AsRef<str>>(_dest: D, _tls: bool) -> Result<Self>
```

Source: `minds-rust-sdk/src/router_client.rs:97`.

### `RouterGrpcClient` [#routergrpcclient]

```rust
    pub struct RouterGrpcClient {
        client: KnowledgeRouterClient<Channel>,
    }
```

Source: `minds-rust-sdk/src/router_client.rs:16`.

### `Client` [#client-1]

```rust
    pub struct Client;
```

Source: `minds-rust-sdk/src/router_client.rs:95`.

### `pb` [#pb]

```rust
    pub mod pb {
        tonic::include_proto!("akasha.router.v1");
```

Source: `minds-rust-sdk/src/router_client.rs:9`.

### `RouterGrpcClient` [#routergrpcclient-1]

```rust

    pub use RouterGrpcClient as Client;
```

Source: `minds-rust-sdk/src/router_client.rs:87`.

### `inner` [#inner]

```rust

pub use inner::Client as RouterClient;
```

Source: `minds-rust-sdk/src/router_client.rs:102`.

### `inner` [#inner-1]

```rust
pub use inner::pb as router_pb;
```

Source: `minds-rust-sdk/src/router_client.rs:106`.

## src/transport.rs [#srctransportrs]

### `HttpConfig::new` [#httpconfignew]

```rust
pub fn new(base_url: Url) -> Self
```

Source: `minds-rust-sdk/src/transport.rs:34`.

### `Http::new` [#httpnew]

```rust
pub fn new(cfg: HttpConfig) -> Result<Self>
```

Source: `minds-rust-sdk/src/transport.rs:52`.

### `Http::get` [#httpget]

```rust
pub async fn get<T: DeserializeOwned>(&self, path: &str) -> Result<T>
```

Source: `minds-rust-sdk/src/transport.rs:147`.

### `Http::post` [#httppost]

```rust
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` [#httpput]

```rust
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` [#httppatch]

```rust
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` [#httpdelete]

```rust
pub async fn delete<T: DeserializeOwned>(&self, path: &str) -> Result<T>
```

Source: `minds-rust-sdk/src/transport.rs:171`.

### `CapabilityTokenPayload` [#capabilitytokenpayload]

```rust
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` [#httpconfig]

```rust
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` [#http]

```rust
pub struct Http {
    pub(crate) client: Client,
    pub(crate) cfg: HttpConfig,
}
```

Source: `minds-rust-sdk/src/transport.rs:46`.
