pub struct RuntimeCoreConfig {
pub attachment_store: Arc<dyn AttachmentStore>,
pub prompt: PromptLayer,
pub trace_sink: Option<Arc<dyn TraceSink>>,
pub trace_level: TraceLevel,
pub trace_context: TraceContext,
pub termination: TerminationPolicy,
}Expand description
Required host configuration for all runtimes.
Fields§
§attachment_store: Arc<dyn AttachmentStore>§prompt: PromptLayer§trace_sink: Option<Arc<dyn TraceSink>>§trace_level: TraceLevel§trace_context: TraceContext§termination: TerminationPolicyImplementations§
Source§impl RuntimeCoreConfig
impl RuntimeCoreConfig
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
Trait Implementations§
Source§impl Clone for RuntimeCoreConfig
impl Clone for RuntimeCoreConfig
Source§fn clone(&self) -> RuntimeCoreConfig
fn clone(&self) -> RuntimeCoreConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeCoreConfig
impl !RefUnwindSafe for RuntimeCoreConfig
impl Send for RuntimeCoreConfig
impl Sync for RuntimeCoreConfig
impl Unpin for RuntimeCoreConfig
impl UnsafeUnpin for RuntimeCoreConfig
impl !UnwindSafe for RuntimeCoreConfig
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