pub struct RuntimeEnvironmentBuilder { /* private fields */ }Expand description
Fluent builder for RuntimeEnvironment.
Implementations§
Source§impl RuntimeEnvironmentBuilder
impl RuntimeEnvironmentBuilder
pub fn with_plugin_host(self, host: Arc<PluginHost>) -> Self
pub fn with_residency(self, residency: Residency) -> Self
pub fn with_process_registry( self, process_registry: Arc<dyn ProcessRegistry>, ) -> Self
pub fn with_host_event_store(self, store: Arc<dyn HostEventStore>) -> Self
pub fn with_session_store_factory( self, factory: Arc<dyn SessionStoreFactory>, ) -> Self
Sourcepub fn with_process_work_poke(self, poke: ProcessWorkPoke) -> Self
pub fn with_process_work_poke(self, poke: ProcessWorkPoke) -> Self
Set the poke handle that wakes the host’s ProcessWorkRunner. Every
RuntimeHost built from this environment carries the poke, so the
process control seam can make consumption prompt after a start.
pub fn with_queued_work_poke(self, poke: QueuedWorkPoke) -> Self
pub fn with_runtime_host_config(self, core: RuntimeHostConfig) -> Self
pub fn with_attachment_store(self, store: Arc<dyn AttachmentStore>) -> Self
pub fn with_prompt_template(self, template: PromptTemplate) -> Self
pub fn with_prompt_contribution(self, contribution: PromptContribution) -> Self
pub fn with_replaced_prompt_slot( self, slot: PromptSlot, contributions: impl IntoIterator<Item = PromptContribution>, ) -> Self
pub fn with_cleared_prompt_slot(self, slot: PromptSlot) -> Self
pub fn with_prompt_layer(self, prompt: PromptLayer) -> Self
pub fn with_trace_sink(self, sink: Option<Arc<dyn TraceSink>>) -> Self
pub fn with_lashlang_execution_sink( self, sink: Option<Arc<dyn TraceSink>>, ) -> Self
pub fn with_lashlang_execution_jsonl_path(self, path: Option<PathBuf>) -> Self
pub fn with_trace_level(self, level: TraceLevel) -> Self
pub fn with_trace_context(self, context: TraceContext) -> Self
pub fn with_termination(self, termination: TerminationPolicy) -> Self
pub fn with_effect_host(self, effect_host: Arc<dyn EffectHost>) -> Self
pub fn with_provider_resolver( self, provider_resolver: Arc<dyn RuntimeProviderResolver>, ) -> Self
pub fn build(self) -> RuntimeEnvironment
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeEnvironmentBuilder
impl !UnwindSafe for RuntimeEnvironmentBuilder
impl Freeze for RuntimeEnvironmentBuilder
impl Send for RuntimeEnvironmentBuilder
impl Sync for RuntimeEnvironmentBuilder
impl Unpin for RuntimeEnvironmentBuilder
impl UnsafeUnpin for RuntimeEnvironmentBuilder
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