pub trait CustomWorkspaceChunkingStrategy: Send + Sync {
// Required method
fn split(
&self,
input: WorkspaceChunkingInput<'_>,
) -> Result<Vec<WorkspaceChunkRange>, WorkspaceChunkingError>;
}Expand description
Host extension point for deterministic workspace text splitting.
Implementations return ranges only. A3S Code validates complete coverage,
ordering, UTF-8 boundaries, chunk size/count budgets, then computes line
anchors, source digests, and stable IDs itself. Implementations must be pure,
deterministic, and must not retain input after this call.
Required Methods§
fn split( &self, input: WorkspaceChunkingInput<'_>, ) -> Result<Vec<WorkspaceChunkRange>, WorkspaceChunkingError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".