Package Exports
- @dingjia3/code-agent
- @dingjia3/code-agent/dist/cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dingjia3/code-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
#agent
如何开发
- agent.config.json.sample 重命名为 agent.config.json
- 修改 agent.config.json 中的apiKey为自己的deepseek apiKey
运行agent
npm i
npm run build
npm link
cd 代码项目目录
code-agent interactive
# or
code-agent run "输入你的问题"如何使用
# 安装
npm install @dingjia3/code-agent -g
# 进入项目目录
cd 目标工程目录
# 添加文件 agent.config.json
{
"deepseek": {
"apiKey": "sk-你的deepseek ak",
"baseUrl": "https://api.deepseek.com/v1",
"model": "deepseek-chat",
"maxTokens": 4096,
"temperature": 0.5
},
"trajectoryFile": "./logs/execution_trace.json"
}
# 运行
ca interactive