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>, ) -> RuntimeEnvironmentBuilder
pub fn with_residency(self, residency: Residency) -> RuntimeEnvironmentBuilder
pub fn with_process_registry( self, process_registry: Arc<dyn ProcessRegistry>, ) -> RuntimeEnvironmentBuilder
pub fn with_trigger_store( self, store: Arc<dyn TriggerStore>, ) -> RuntimeEnvironmentBuilder
pub fn with_session_store_factory( self, factory: Arc<dyn SessionStoreFactory>, ) -> RuntimeEnvironmentBuilder
Sourcepub fn with_process_work_poke(
self,
poke: ProcessWorkPoke,
) -> RuntimeEnvironmentBuilder
pub fn with_process_work_poke( self, poke: ProcessWorkPoke, ) -> RuntimeEnvironmentBuilder
Set the poke handle that wakes the host’s ProcessWorkRunner. Every
RuntimeHost built from this environment carries the poke, so the
process admin seam can make consumption prompt after a start.
pub fn with_queued_work_poke( self, poke: QueuedWorkPoke, ) -> RuntimeEnvironmentBuilder
pub fn with_runtime_host_config( self, core: RuntimeHostConfig, ) -> RuntimeEnvironmentBuilder
pub fn with_attachment_store( self, store: Arc<dyn AttachmentStore>, ) -> RuntimeEnvironmentBuilder
pub fn with_prompt_template( self, template: PromptTemplate, ) -> RuntimeEnvironmentBuilder
pub fn with_prompt_contribution( self, contribution: PromptContribution, ) -> RuntimeEnvironmentBuilder
pub fn with_replaced_prompt_slot( self, slot: PromptSlot, contributions: impl IntoIterator<Item = PromptContribution>, ) -> RuntimeEnvironmentBuilder
pub fn with_cleared_prompt_slot( self, slot: PromptSlot, ) -> RuntimeEnvironmentBuilder
pub fn with_prompt_layer(self, prompt: PromptLayer) -> RuntimeEnvironmentBuilder
pub fn with_trace_sink( self, sink: Option<Arc<dyn TraceSink>>, ) -> RuntimeEnvironmentBuilder
pub fn with_trace_level(self, level: TraceLevel) -> RuntimeEnvironmentBuilder
pub fn with_trace_context( self, context: TraceContext, ) -> RuntimeEnvironmentBuilder
pub fn with_termination( self, termination: TerminationPolicy, ) -> RuntimeEnvironmentBuilder
pub fn with_effect_host( self, effect_host: Arc<dyn EffectHost>, ) -> RuntimeEnvironmentBuilder
pub fn with_provider_resolver( self, provider_resolver: Arc<dyn RuntimeProviderResolver>, ) -> RuntimeEnvironmentBuilder
pub fn build(self) -> RuntimeEnvironment
Trait Implementations§
Source§impl Default for RuntimeEnvironmentBuilder
impl Default for RuntimeEnvironmentBuilder
Source§fn default() -> RuntimeEnvironmentBuilder
fn default() -> RuntimeEnvironmentBuilder
Returns the “default value” for a type. Read more
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