pub struct AlgorithmFactory { /* private fields */ }Expand description
Parsed deployment configuration for building algorithms with host-owned execution.
Implementations§
Source§impl AlgorithmFactory
impl AlgorithmFactory
Sourcepub fn from_toml(source: &str) -> Result<Self, RunnerError>
pub fn from_toml(source: &str) -> Result<Self, RunnerError>
Parses deployment TOML without resolving credentials or constructing provider clients.
Invalid TOML returns a configuration error; routing settings are checked by Self::build.
Sourcepub fn build(
&self,
) -> Result<BTreeMap<String, (Arc<dyn Algorithm>, RuntimeModels)>, RunnerError>
pub fn build( &self, ) -> Result<BTreeMap<String, (Arc<dyn Algorithm>, RuntimeModels)>, RunnerError>
Builds algorithms and their model groups, keyed by configured route id.
The host serves model calls and owns target prompts, provider settings and transport. Reuse the returned algorithms across requests to retain algorithm-owned state.
Auto Trait Implementations§
impl Freeze for AlgorithmFactory
impl RefUnwindSafe for AlgorithmFactory
impl Send for AlgorithmFactory
impl Sync for AlgorithmFactory
impl Unpin for AlgorithmFactory
impl UnsafeUnpin for AlgorithmFactory
impl UnwindSafe for AlgorithmFactory
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