pub struct Runtime {
pub config: ConfigToml,
pub hooks: HookDispatcher,
pub jobs: JobManager,
/* private fields */
}Expand description
Compatibility configuration, hooks and job bookkeeping.
Conversation execution and durable history belong to the held canonical RuntimeThreadManager/Engine. Legacy State data is retained for read-only recovery and bound alias publication, never as a second transcript writer.
Fields§
§config: ConfigToml§hooks: HookDispatcher§jobs: JobManagerImplementations§
Source§impl Runtime
impl Runtime
pub fn new(config: ConfigToml, state: StateStore, hooks: HookDispatcher) -> Self
Sourcepub fn state_store(&self) -> &StateStore
pub fn state_store(&self) -> &StateStore
Existing compatibility data and receipts; no transcript controller.
pub fn update_config(&mut self, config: ConfigToml)
Sourcepub fn app_status(&self) -> AppResponse
pub fn app_status(&self) -> AppResponse
Returns the current application status including all jobs and their history.
Sourcepub fn provider_default(&self) -> ProviderKind
pub fn provider_default(&self) -> ProviderKind
Returns the default model provider from the resolved configuration.
Auto Trait Implementations§
impl !RefUnwindSafe for Runtime
impl !UnwindSafe for Runtime
impl Freeze for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
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