Cloned Repository Reference
Reference to a cloned Git repository with automatic cleanup capabilities. Exposes LLM tools and ensures proper cleanup on application shutdown.
Parameters
The URL of the Git repository we cloned
The local path where the repository is cloned.
If true, the repository will be deleted when closed.
Limits for file processing operations.
Constructors
Properties
Provide sanitizers that run on file content before returning it. They must be sure not to change any content that may need to be replaced as this will break editing if editing is done in the same session.
Tool callbacks referenced or exposed.
Functions
Expose the ToolGroup as an interface
Use for safe reading of files. Returns null if the file doesn't exist or is not readable.
Create a tool object for this reference.
A safe prefix for LLM tools associated with this reference. Defaults to the name lowercased with spaces replaced by underscores. Subclasses can override it
Write all files in the repository to a single string. Only use this for small repositories as it loads everything into memory. Applies file content transformers (like removing Apache license headers). Uses FileVisitor for cross-platform compatibility.