pub struct EmbeddedRuntimeBuilder { /* private fields */ }Implementations§
Source§impl EmbeddedRuntimeBuilder
impl EmbeddedRuntimeBuilder
pub fn new() -> Self
pub fn session_id(&self) -> Option<&str>
pub fn policy(&self) -> Option<&SessionPolicy>
pub fn with_session_id(self, session_id: impl Into<String>) -> Self
pub fn with_policy(self, policy: SessionPolicy) -> Self
pub fn with_initial_state(self, state: PersistedSessionState) -> Self
pub fn with_plugin_host(self, plugin_host: PluginHost) -> Self
pub fn with_plugin_session(self, plugin_session: Arc<PluginSession>) -> Self
pub fn with_plugin_factories( self, factories: Vec<Arc<dyn PluginFactory>>, ) -> Self
pub fn with_plugin_stack(self, stack: PluginStack) -> Self
pub fn with_turn_injection_bridge(self, bridge: TurnInjectionBridge) -> Self
pub fn with_turn_input_injection_bridge( self, bridge: TurnInputInjectionBridge, ) -> Self
pub fn with_runtime_core(self, core: RuntimeCoreConfig) -> Self
pub fn with_attachment_store( self, attachment_store: Arc<dyn AttachmentStore>, ) -> Self
pub fn with_prompt_template(self, prompt_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, trace_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 with_session_store_factory( self, session_store_factory: Arc<dyn SessionStoreFactory>, ) -> Self
pub fn with_store(self, store: Arc<dyn RuntimePersistence>) -> Self
pub fn with_background_task_host( self, background_task_host: Arc<dyn BackgroundTaskHost>, ) -> Self
pub async fn build(self) -> Result<LashRuntime, SessionError>
pub async fn build_ephemeral(self) -> Result<LashRuntime, SessionError>
pub async fn build_persistent( self, store: Arc<dyn RuntimePersistence>, ) -> Result<LashRuntime, SessionError>
pub async fn build_background_persistent( self, store: Arc<dyn RuntimePersistence>, background_task_host: Arc<dyn BackgroundTaskHost>, ) -> Result<LashRuntime, SessionError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedRuntimeBuilder
impl !RefUnwindSafe for EmbeddedRuntimeBuilder
impl Send for EmbeddedRuntimeBuilder
impl Sync for EmbeddedRuntimeBuilder
impl Unpin for EmbeddedRuntimeBuilder
impl UnsafeUnpin for EmbeddedRuntimeBuilder
impl !UnwindSafe for EmbeddedRuntimeBuilder
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