Skip to main content

Satori

Struct Satori 

Source
pub struct Satori { /* private fields */ }

Implementations§

Source§

impl Satori

Source

pub async fn connect( username: String, password: String, url: String, ) -> Result<Self>

Source

pub async fn send(&self, payload: Map<String, Value>) -> Result<Value>

Source

pub async fn command(&self, command: &str, args: Value) -> Result<Value>

Source

pub async fn set_notify<F>(&self, key: &str, callback: F) -> Result<()>
where F: Fn(Value) + Send + Sync + 'static,

Source

pub async fn set(&self, args: Value) -> Result<Value>

Source

pub async fn query(&self, args: Value) -> Result<Value>

Source

pub async fn ann(&self, args: Value) -> Result<Value>

Source

pub async fn set_middleware(&self, args: Value) -> Result<Value>

Source

pub async fn get_access_frequency(&self, args: Value) -> Result<Value>

Source

pub async fn get_operations(&self) -> Result<Value>

Source

pub async fn ask(&self, args: Value) -> Result<Value>

Source

pub async fn get(&self, args: Value) -> Result<Value>

Source

pub async fn put(&self, args: Value) -> Result<Value>

Source

pub async fn delete(&self, args: Value) -> Result<Value>

Source

pub async fn encrypt(&self, args: Value) -> Result<Value>

Source

pub async fn decrypt(&self, args: Value) -> Result<Value>

Source

pub async fn push(&self, args: Value) -> Result<Value>

Source

pub async fn pop(&self, args: Value) -> Result<Value>

Source

pub async fn splice(&self, args: Value) -> Result<Value>

Source

pub async fn remove(&self, args: Value) -> Result<Value>

Source

pub async fn dfs(&self, args: Value) -> Result<Value>

Source

pub async fn set_vertex(&self, args: Value) -> Result<Value>

Source

pub async fn get_vertex(&self, args: Value) -> Result<Value>

Source

pub async fn delete_vertex(&self, args: Value) -> Result<Value>

Source

pub async fn graph_bfs(&self, args: Value) -> Result<Value>

Performs breadth-first search on the graph. Returns all nodes reachable from a starting node.

Source

pub async fn graph_dfs(&self, args: Value) -> Result<Value>

Performs depth-first search on the graph. Returns all nodes reachable from a starting node.

Source

pub async fn graph_shortest_path(&self, args: Value) -> Result<Value>

Finds the shortest path between a start node and end node using Dijkstra’s algorithm.

Source

pub async fn graph_connected_components(&self, args: Value) -> Result<Value>

Identifies all connected components in the graph.

Source

pub async fn graph_scc(&self, args: Value) -> Result<Value>

Finds strongly connected components using Tarjan’s algorithm.

Source

pub async fn graph_degree_centrality(&self, args: Value) -> Result<Value>

Calculates degree centrality (number of connections) for each node in the graph.

Source

pub async fn graph_closeness_centrality(&self, args: Value) -> Result<Value>

Calculates closeness centrality for each node.

Source

pub async fn graph_centroid(&self, args: Value) -> Result<Value>

Finds the centroid node (node with highest closeness centrality).

Source

pub async fn get_similar(&self, args: Value) -> Result<Value>

Alias for ANN - performs approximate nearest neighbor search.

Source

pub async fn set_mindspace(&self, args: Value) -> Result<Value>

Creates a new mindspace (cognitive context) for AI-powered conversations.

Source

pub async fn create_mindspace(&self, args: Value) -> Result<Value>

Alias for SET_MINDSPACE.

Source

pub async fn delete_mindspace(&self, args: Value) -> Result<Value>

Deletes a mindspace and all its associated context.

Source

pub async fn chat_mindspace(&self, args: Value) -> Result<Value>

Sends a message to a mindspace and receives an AI-generated response.

Source

pub async fn lecture_mindspace(&self, args: Value) -> Result<Value>

Imports text corpus into a mindspace for semantic search and context retrieval.

Trait Implementations§

Source§

impl Clone for Satori

Source§

fn clone(&self) -> Satori

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V