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_background_task_host( self, background_task_host: Arc<dyn BackgroundTaskHost>, ) -> Self
pub fn with_session_store_factory( self, factory: Arc<dyn SessionStoreFactory>, ) -> 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_jsonl_path(self, path: Option<PathBuf>) -> Self
pub fn with_trace_sink(self, sink: Option<Arc<dyn TraceSink>>) -> 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 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 Freeze for RuntimeEnvironmentBuilder
impl !RefUnwindSafe for RuntimeEnvironmentBuilder
impl Send for RuntimeEnvironmentBuilder
impl Sync for RuntimeEnvironmentBuilder
impl Unpin for RuntimeEnvironmentBuilder
impl UnsafeUnpin for RuntimeEnvironmentBuilder
impl !UnwindSafe 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