Expand description
Workspace capability abstractions.
Built-in tools expose stable model-facing contracts (read, write, ls,
bash, …). The concrete place where those operations happen is supplied
by a workspace capability backend. The default backend is the local
filesystem (see LocalWorkspaceBackend); hosts can provide remote,
browser, DFS, or container-backed implementations by assembling
WorkspaceServices through WorkspaceServicesBuilder.
Structs§
- Chunk
Catalog Limits - Hard catalog bounds checked before publishing a replacement.
- Chunk
Catalog Snapshot - Immutable, query-safe view of one catalog revision.
- Chunking
Config - Deterministic chunking limits.
- Command
Output - Command execution output.
- Command
Output Summary - Final accounting for a bounded command-output capture.
- Command
Request - Command execution request.
- Fixed
Window Chunking Options - Options for fixed UTF-8 byte windows with bounded overlap.
- Lexical
Search Hit - Lexical
Search Request - Lexical
Search Result - Local
Workspace Backend - Local filesystem-backed workspace implementation.
- Local
Workspace File - One manifest entry.
- Local
Workspace Manifest - Shared in-memory workspace manifest.
- Local
Workspace Manifest Snapshot - Immutable manifest snapshot.
- Manifest
Workspace Backend - Local backend that uses an in-memory manifest for search.
- Recent
Workspace File - Recency/usage score for a workspace file the user or agent touched.
- Recursive
Chunking Options - Options for recursive separator-aware text splitting.
- Remote
GitBackend - Client for a remote
gitserver. See module docs / RFC for the protocol. - Remote
GitBackend Config - Configuration for a
RemoteGitBackend. - Remote
GitConflict - Error returned for HTTP 409 / 422 responses that carry a recoverable
failure code. Tools downcast with
anyhow::Error::downcast_refto react — for example, retrying after aWORKING_TREE_DIRTYby stashing first. - Virtual
Path Resolver - Lexical resolver suitable for virtual/browser/DFS workspaces.
- Workspace
Capabilities - Workspace capability flags used to gate which built-in tools are registered.
- Workspace
Chunk - One bounded source chunk admitted to workspace retrieval.
- Workspace
Chunk Catalog - Atomic, bounded, session-owned catalog of workspace source chunks.
- Workspace
Chunk Id - Stable identifier for one deterministic workspace chunk.
- Workspace
Chunk Range - One zero-based, half-open UTF-8 byte range proposed by a chunking strategy.
- Workspace
Chunking Input - Redacted input supplied to a host-owned custom chunking strategy.
- Workspace
DirEntry - Directory entry returned by a workspace backend.
- Workspace
Eligibility Policy - Conservative sensitive-path rules for files retained in the local catalog.
- Workspace
Embedding Batch Metrics - Machine-readable batching evidence for the current catalog generation.
- Workspace
File Change - A filesystem change for one normalized workspace-relative file path.
- Workspace
GitBranch - Branch information returned by a workspace Git provider.
- Workspace
GitCheckout Output - Checkout output returned by a workspace Git provider.
- Workspace
GitCheckout Request - Checkout request for a workspace Git provider.
- Workspace
GitCommit - Commit information returned by a workspace Git provider.
- Workspace
GitCreate Branch Request - Branch creation request for a workspace Git provider.
- Workspace
GitCreate Worktree Request - Worktree creation request for a workspace Git provider.
- Workspace
GitDiff Request - Diff request for a workspace Git provider.
- Workspace
GitRemote - Remote information returned by a workspace Git provider.
- Workspace
GitRemove Worktree Request - Worktree removal request for a workspace Git provider.
- Workspace
GitStash - Stash information returned by a workspace Git provider.
- Workspace
GitStash Request - Stash request for a workspace Git provider.
- Workspace
GitStatus - Repository status returned by a workspace Git provider.
- Workspace
GitWorktree - Worktree information returned by a workspace Git provider.
- Workspace
GitWorktree Mutation - Mutation result for workspace Git worktree operations.
- Workspace
Glob Request - Glob request for workspace-backed search.
- Workspace
Glob Result - Glob result returned by a workspace search provider.
- Workspace
Grep Outcome - Grep result plus structured source evidence when supplied by a backend.
- Workspace
Grep Request - Grep request for workspace-backed search.
- Workspace
Grep Result - Grep result returned by a workspace search provider.
- Workspace
Hybrid Channel Rank - One channel rank that contributed to a fused hit.
- Workspace
Hybrid Channel Status - Per-channel evidence included with every hybrid result.
- Workspace
Hybrid Search Hit - One current-source-verified fused match.
- Workspace
Hybrid Search Request - Bounded request for deterministic hybrid workspace retrieval.
- Workspace
Hybrid Search Result - Fused results plus the exact semantic and catalog state used to build them.
- Workspace
Path - A normalized virtual path inside a workspace.
- Workspace
Ref - Identity and display metadata for a workspace.
- Workspace
Rerank Options - Explicit bounded configuration for hybrid second-stage ranking.
- Workspace
Rerank Status - Non-sensitive accounting for one bounded hybrid rerank operation.
- Workspace
Retrieval Options - Typed, host-owned semantic retrieval configuration for one session.
- Workspace
Retrieval Runtime - Session-owned asynchronous projection from workspace chunks to vectors.
- Workspace
Retrieval Status - Non-sensitive, immutable observation of one semantic index revision.
- Workspace
Semantic Index Limits - Resource limits for one session-owned semantic workspace index.
- Workspace
Semantic Search Hit - One digest-verified semantic match from an immutable catalog revision.
- Workspace
Semantic Search Request - Bounded request for semantic workspace retrieval.
- Workspace
Semantic Search Result - Structured semantic results and the exact status that produced them.
- Workspace
Services - The host-provided workspace capability bundle used by tool execution.
- Workspace
Services Builder - Builder for assembling workspace services without constructor arity churn.
- Workspace
Text Range - A bounded text range returned by an optional streaming workspace reader.
- Workspace
Version Conflict - Error returned by
WorkspaceFileSystemExt::write_text_if_versionwhen the underlying object version no longer matches the expected version. - Workspace
Write Outcome - Result metadata for a write operation.
Enums§
- Local
Workspace Access Policy - Optional access policy for the local workspace backend.
- Local
Workspace File Status - Git/workspace status for a file in the manifest.
- Workspace
Chunking Error - Bounded failure returned by built-in or host-owned chunking code.
- Workspace
Chunking Strategy - Built-in and host-injected workspace chunking strategies.
- Workspace
Error - Error type returned by every
WorkspaceFileSystemand friend trait method. - Workspace
File Change Kind - The normalized kind of a workspace file change.
- Workspace
File Type - Directory entry kind.
- Workspace
Hybrid Fallback Reason - Why one hybrid channel or the final fused result is partial.
- Workspace
Index Error - Workspace
Rerank Algorithm - Versioned ranking pipeline actually applied to one hybrid result.
- Workspace
Rerank Fallback Reason - Why an explicitly requested reranker preserved the original RRF order.
- Workspace
Rerank Mode - Requested or applied second-stage ranking behavior.
- Workspace
Retrieval Channel - Independent retrieval evidence channels fused by hybrid search.
- Workspace
Retrieval Error - Construction failures for a session semantic retrieval runtime.
- Workspace
Retrieval Phase - Lifecycle state of a session’s semantic workspace index.
- Workspace
Semantic Fallback Reason - Explicit reason a semantic query could not run or returned partial data.
Traits§
- Command
Output Observer - Observer that receives streaming output deltas from a workspace command.
- Custom
Workspace Chunking Strategy - Host extension point for deterministic workspace text splitting.
- Workspace
Command Runner - Shell/command execution available to the
bashtool. - Workspace
File System - File operations available to built-in file tools.
- Workspace
File System Ext - Optional compare-and-swap extensions to
WorkspaceFileSystem. - Workspace
Git - Core Git operations supported by virtually every workspace Git backend.
- Workspace
GitStash Provider - Optional Git stash operations.
- Workspace
GitWorktree Provider - Optional Git worktree operations.
- Workspace
Path Resolver - Normalizes and validates host-supplied paths before they reach a backend.
- Workspace
Search - Search operations available to
globandgrep. - Workspace
Text Reader - Optional streaming text capability for backends that can avoid loading a complete file when a caller needs only a line range.
Functions§
Type Aliases§
- Workspace
Result - Result alias used throughout the workspace trait surface in v3.0+.
- Workspace
Retrieval Result