pub struct AgentRuntime {
pub scheduler: Arc<dyn AgentScheduler + Send + Sync>,
pub lifecycle: Arc<dyn LifecycleController + Send + Sync>,
pub resource_manager: Arc<dyn ResourceManager + Send + Sync>,
pub communication: Arc<dyn CommunicationBus + Send + Sync>,
pub error_handler: Arc<dyn ErrorHandler + Send + Sync>,
pub context_manager: Arc<dyn ContextManager + Send + Sync>,
pub model_logger: Option<Arc<ModelLogger>>,
pub model_catalog: Option<Arc<ModelCatalog>>,
/* private fields */
}Expand description
Main Agent Runtime System
Fields§
§scheduler: Arc<dyn AgentScheduler + Send + Sync>§lifecycle: Arc<dyn LifecycleController + Send + Sync>§resource_manager: Arc<dyn ResourceManager + Send + Sync>§communication: Arc<dyn CommunicationBus + Send + Sync>§error_handler: Arc<dyn ErrorHandler + Send + Sync>§context_manager: Arc<dyn ContextManager + Send + Sync>§model_logger: Option<Arc<ModelLogger>>§model_catalog: Option<Arc<ModelCatalog>>Implementations§
Source§impl AgentRuntime
impl AgentRuntime
Sourcepub async fn new(config: RuntimeConfig) -> Result<Self, RuntimeError>
pub async fn new(config: RuntimeConfig) -> Result<Self, RuntimeError>
Create a new Agent Runtime System instance
Sourcepub async fn get_config(&self) -> RuntimeConfig
pub async fn get_config(&self) -> RuntimeConfig
Get the current runtime configuration
Sourcepub async fn update_config(
&self,
config: RuntimeConfig,
) -> Result<(), RuntimeError>
pub async fn update_config( &self, config: RuntimeConfig, ) -> Result<(), RuntimeError>
Update the runtime configuration
Sourcepub async fn shutdown(&self) -> Result<(), RuntimeError>
pub async fn shutdown(&self) -> Result<(), RuntimeError>
Shutdown the runtime system gracefully
Sourcepub async fn get_status(&self) -> SystemStatus
pub async fn get_status(&self) -> SystemStatus
Get system status
Trait Implementations§
Source§impl Clone for AgentRuntime
impl Clone for AgentRuntime
Source§fn clone(&self) -> AgentRuntime
fn clone(&self) -> AgentRuntime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentRuntime
impl !RefUnwindSafe for AgentRuntime
impl Send for AgentRuntime
impl Sync for AgentRuntime
impl Unpin for AgentRuntime
impl !UnwindSafe for AgentRuntime
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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