pub struct RuntimeFactory;Implementations§
Source§impl RuntimeFactory
impl RuntimeFactory
pub async fn build(config: RuntimeBackend) -> Result<RuntimeComposition>
pub fn from_db(db: Surreal<Any>) -> RuntimeComposition
pub fn default_chat_client() -> Arc<dyn AiChatClient>
pub fn default_workflow_engine() -> Arc<dyn WorkflowEngine>
pub async fn ensure_locus_memory_adapters( enable_locus_memory: bool, memory_context_reader: Option<Arc<dyn MemoryContextReader>>, memory_context_writer: Option<Arc<dyn MemoryContextWriter>>, memory_operations: Option<Arc<dyn MemoryOperations>>, ) -> Result<(Option<Arc<dyn MemoryContextReader>>, Option<Arc<dyn MemoryContextWriter>>, Option<Arc<dyn MemoryOperations>>)>
pub fn resolve_thread_store( runtime: &RuntimeComposition, configured: Option<Arc<dyn ThreadStore>>, ) -> Arc<dyn ThreadStore>
pub fn resolve_cluster_node_store( runtime: &RuntimeComposition, configured: Option<Arc<dyn ClusterNodeStore>>, ) -> Arc<dyn ClusterNodeStore>
pub fn resolve_delivery_endpoint_store( runtime: &RuntimeComposition, configured: Option<Arc<dyn DeliveryEndpointStore>>, ) -> Arc<dyn DeliveryEndpointStore>
pub fn resolve_endpoint_delivery_status_store( runtime: &RuntimeComposition, configured: Option<Arc<dyn EndpointDeliveryStatusStore>>, ) -> Arc<dyn EndpointDeliveryStatusStore>
pub fn build_endpoint_routing_publisher( endpoint_store: Arc<dyn DeliveryEndpointStore>, status_store: Arc<dyn EndpointDeliveryStatusStore>, transports: &[Arc<dyn EndpointTransportPublisher>], routing_policy: Option<Arc<dyn EndpointRoutingPolicy>>, ) -> EndpointRoutingEventPublisher
Auto Trait Implementations§
impl Freeze for RuntimeFactory
impl RefUnwindSafe for RuntimeFactory
impl Send for RuntimeFactory
impl Sync for RuntimeFactory
impl Unpin for RuntimeFactory
impl UnsafeUnpin for RuntimeFactory
impl UnwindSafe for RuntimeFactory
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request