code-agent,是一个基于 Agent Tools 的代理系统,主要用于代码库的管理和分析
工具集合:
CodebaseSearchTool:代码库语义搜索工具。GrepSearchTool:基于文本模式的搜索工具。ListDirTool:列出目录内容。ViewFileTool:查看文件内容。ViewCodeItemTool:查看代码项(如函数或类)。FindByNameTool:按名称查找文件。RelatedFilesTool:查找相关文件。与 LLM 的交互:
LLMClient 与大语言模型进行交互,可能用于自然语言查询代码库或生成代码。数据存储与检索:
QdrantClient 作为向量数据库,结合嵌入模型和重排序模型,支持高效的数据检索。git clone [repository-url]
brew install ripgrep
cd code-agent
uv pip install .
.env 文件并设置必要的环境变量:OPENAI_API_BASE: <your-openai-api-base>
OPENAI_API_KEY: <your-openai-api-key>
EMBEDDING_URL: <your-embedding-url>
RERANK_URL: <your-rerank-url>
python main.py
MIT License
22 commits
Python
99.1%
code-agent,是一个基于 Agent Tools 的代理系统,主要用于代码库的管理和分析
工具集合:
CodebaseSearchTool:代码库语义搜索工具。GrepSearchTool:基于文本模式的搜索工具。ListDirTool:列出目录内容。ViewFileTool:查看文件内容。ViewCodeItemTool:查看代码项(如函数或类)。FindByNameTool:按名称查找文件。RelatedFilesTool:查找相关文件。与 LLM 的交互:
LLMClient 与大语言模型进行交互,可能用于自然语言查询代码库或生成代码。数据存储与检索:
QdrantClient 作为向量数据库,结合嵌入模型和重排序模型,支持高效的数据检索。git clone [repository-url]
brew install ripgrep
cd code-agent
uv pip install .
.env 文件并设置必要的环境变量:OPENAI_API_BASE: <your-openai-api-base>
OPENAI_API_KEY: <your-openai-api-key>
EMBEDDING_URL: <your-embedding-url>
RERANK_URL: <your-rerank-url>
python main.py
MIT License
22 commits
Python
99.1%