pub struct OmegaAPI { /* private fields */ }Expand description
High-level API for the Omega Runtime
Implementations§
Source§impl OmegaAPI
impl OmegaAPI
Sourcepub fn new(runtime: Arc<OmegaRuntime>) -> Self
pub fn new(runtime: Arc<OmegaRuntime>) -> Self
Create a new API instance
Sourcepub async fn store_memory(
&self,
content: &str,
tier: MemoryTier,
) -> APIResult<Uuid>
pub async fn store_memory( &self, content: &str, tier: MemoryTier, ) -> APIResult<Uuid>
Store a memory in the specified tier
Sourcepub async fn query_memory(
&self,
query: &str,
tier: Option<MemoryTier>,
) -> APIResult<Vec<Memory>>
pub async fn query_memory( &self, query: &str, tier: Option<MemoryTier>, ) -> APIResult<Vec<Memory>>
Query memories from the specified tier
Sourcepub async fn create_intelligence(
&self,
spec: IntelligenceSpec,
) -> APIResult<Intelligence>
pub async fn create_intelligence( &self, spec: IntelligenceSpec, ) -> APIResult<Intelligence>
Create a new intelligence from a specification
Sourcepub async fn evolve_architecture(&self, id: Uuid) -> APIResult<Architecture>
pub async fn evolve_architecture(&self, id: Uuid) -> APIResult<Architecture>
Evolve an architecture
Sourcepub async fn trigger_loop(
&self,
loop_type: LoopType,
_input: CycleInput,
) -> APIResult<CycleOutput>
pub async fn trigger_loop( &self, loop_type: LoopType, _input: CycleInput, ) -> APIResult<CycleOutput>
Trigger a cognitive loop cycle
Sourcepub async fn get_loop_status(&self) -> APIResult<LoopStatus>
pub async fn get_loop_status(&self) -> APIResult<LoopStatus>
Get the status of all cognitive loops
Sourcepub async fn get_metrics(&self) -> APIResult<RuntimeMetrics>
pub async fn get_metrics(&self) -> APIResult<RuntimeMetrics>
Get runtime metrics
Sourcepub fn get_config(&self) -> &OmegaConfig
pub fn get_config(&self) -> &OmegaConfig
Get the runtime configuration
Auto Trait Implementations§
impl Freeze for OmegaAPI
impl !RefUnwindSafe for OmegaAPI
impl Send for OmegaAPI
impl Sync for OmegaAPI
impl Unpin for OmegaAPI
impl !UnwindSafe for OmegaAPI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more