ingest_git
Analyze and clone a Git repository or local directory, then process files based on specified patterns and parameters. Retrieve summaries, file structures, or file contents directly.
Instructions
This function analyzes a source (URL or local path), clones the corresponding repository (if applicable), and processes its files according to the specified query parameters. It can return a summary, a tree-like structure of the files, or the content of the files.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | No | The branch to clone and ingest. | main |
exclude_patterns | No | Pattern or set of patterns specifying which files to exclude, e.q. '*.md, src/' | |
include_patterns | No | Pattern or set of patterns specifying which files to include, e.q. '*.md, src/' | |
max_file_size | No | Maximum allowed file size for file ingestion.Files larger than this size are ignored, by default 10*1024*1024 (10 MB). | |
source | Yes | The source to analyze, which can be a URL (for a Git repository) or a local directory path. |
Input Schema (JSON Schema)
{
"properties": {
"branch": {
"default": "main",
"description": "The branch to clone and ingest.",
"title": "Branch",
"type": "string"
},
"exclude_patterns": {
"default": "",
"description": "Pattern or set of patterns specifying which files to exclude, e.q. '*.md, src/'",
"title": "Exclude Patterns",
"type": "string"
},
"include_patterns": {
"default": "",
"description": "Pattern or set of patterns specifying which files to include, e.q. '*.md, src/'",
"title": "Include Patterns",
"type": "string"
},
"max_file_size": {
"default": 10485760,
"description": "Maximum allowed file size for file ingestion.Files larger than this size are ignored, by default 10*1024*1024 (10 MB).",
"title": "Max File Size",
"type": "integer"
},
"source": {
"description": "The source to analyze, which can be a URL (for a Git repository) or a local directory path.",
"title": "Source",
"type": "string"
}
},
"required": [
"source"
],
"title": "ingest_gitArguments",
"type": "object"
}