pub struct BenchMemoryParams {
pub data_dir: PathBuf,
pub embedding_model: String,
pub run_id: String,
pub dataset: String,
}Expand description
Parameters required to construct a per-scenario SQLite-backed SemanticMemory.
Populated by BenchRunner::with_memory_params and consumed inside
BenchRunner::run_one when opts.memory_mode == MemoryMode::On.
§Examples
use std::path::PathBuf;
use zeph_bench::runner::BenchMemoryParams;
let params = BenchMemoryParams {
data_dir: PathBuf::from("/tmp/bench"),
embedding_model: "nomic-embed-text".into(),
run_id: "bench-abc".into(),
dataset: "locomo".into(),
};
assert!(params.data_dir.to_string_lossy().contains("bench"));Fields§
§data_dir: PathBufDirectory where per-scenario SQLite files live (deleted between scenarios).
The derived path always contains the bench- segment (NFR-001).
embedding_model: StringEmbedding model name passed to SemanticMemory.
run_id: StringRun ID used to namespace bench artifacts; matches the outer BenchRun.run_id.
dataset: StringDataset name used to namespace bench artifacts.
Trait Implementations§
Source§impl Clone for BenchMemoryParams
impl Clone for BenchMemoryParams
Source§fn clone(&self) -> BenchMemoryParams
fn clone(&self) -> BenchMemoryParams
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 BenchMemoryParams
impl RefUnwindSafe for BenchMemoryParams
impl Send for BenchMemoryParams
impl Sync for BenchMemoryParams
impl Unpin for BenchMemoryParams
impl UnsafeUnpin for BenchMemoryParams
impl UnwindSafe for BenchMemoryParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request