pub struct WorkspaceRetrievalOptions { /* private fields */ }Expand description
Typed, host-owned semantic retrieval configuration for one session.
A provider object is injected directly. The vector implementation remains an internal detail, so callers cannot select a backend by string.
Implementations§
Source§impl WorkspaceRetrievalOptions
impl WorkspaceRetrievalOptions
Sourcepub fn new(provider: Arc<dyn EmbeddingProvider>) -> Self
pub fn new(provider: Arc<dyn EmbeddingProvider>) -> Self
Enable semantic indexing with a host-supplied embedding provider.
Sourcepub fn with_embedding_config(self, config: EmbeddingExecutorConfig) -> Self
pub fn with_embedding_config(self, config: EmbeddingExecutorConfig) -> Self
Override bounded provider execution and retry behavior.
Sourcepub fn with_index_limits(self, limits: WorkspaceSemanticIndexLimits) -> Self
pub fn with_index_limits(self, limits: WorkspaceSemanticIndexLimits) -> Self
Override vector memory, record, and close-time limits.
Sourcepub fn with_chunking_strategy(self, strategy: WorkspaceChunkingStrategy) -> Self
pub fn with_chunking_strategy(self, strategy: WorkspaceChunkingStrategy) -> Self
Select the deterministic text splitter used by the session-owned workspace catalog.
This option configures the local catalog A3S Code creates for the
session. A host that supplies crate::workspace::WorkspaceServices
owns that catalog and must configure its strategy when constructing it.
Sourcepub fn with_chunking_config(self, config: ChunkingConfig) -> Self
pub fn with_chunking_config(self, config: ChunkingConfig) -> Self
Override hard per-file chunk size and count limits.
Sourcepub fn with_catalog_limits(self, limits: ChunkCatalogLimits) -> Self
pub fn with_catalog_limits(self, limits: ChunkCatalogLimits) -> Self
Override hard memory bounds for the session-owned text catalog.
Sourcepub fn with_rerank_options(self, options: WorkspaceRerankOptions) -> Self
pub fn with_rerank_options(self, options: WorkspaceRerankOptions) -> Self
Select bounded second-stage behavior for hybrid workspace search.
Sourcepub fn with_semantic_readiness_timeout(self, timeout: Duration) -> Self
pub fn with_semantic_readiness_timeout(self, timeout: Duration) -> Self
Wait up to this bound when a semantic query arrives while the current catalog generation is still building.
The default is zero, which preserves immediate partial fallback. A host with a slower local provider can opt into a bounded readiness barrier without making session construction synchronous.
Trait Implementations§
Source§impl Clone for WorkspaceRetrievalOptions
impl Clone for WorkspaceRetrievalOptions
Source§fn clone(&self) -> WorkspaceRetrievalOptions
fn clone(&self) -> WorkspaceRetrievalOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WorkspaceRetrievalOptions
impl !UnwindSafe for WorkspaceRetrievalOptions
impl Freeze for WorkspaceRetrievalOptions
impl Send for WorkspaceRetrievalOptions
impl Sync for WorkspaceRetrievalOptions
impl Unpin for WorkspaceRetrievalOptions
impl UnsafeUnpin for WorkspaceRetrievalOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
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> ⓘ
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 more