File tree Expand file tree Collapse file tree 4 files changed +7
-41
lines changed
Expand file tree Collapse file tree 4 files changed +7
-41
lines changed Original file line number Diff line number Diff line change 77
88## pip 安装
99
10- ### 从内部源安装(由于官方源还在走上架流程,临时使用内部源)
11-
1210最新开发版本
1311``` bash
14- pip install --pre -U agentkit-sdk-python --index-url https://artifacts-cn-beijing.volces.com/repository/agentkit/simple/ --extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --trusted-host mirrors.tuna.tsinghua.edu.cn
12+ pip install --pre agentkit-sdk-python
1513```
1614最新稳定版本
1715``` bash
18- pip install -U agentkit-sdk-python --index-url https://artifacts-cn-beijing.volces.com/repository/agentkit/simple/ --extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --trusted-host mirrors.tuna.tsinghua.edu.cn
16+ pip install agentkit-sdk-python
1917```
2018
21- > ** 说明** :内部源更新频率较高,可获取最新开发版本。
22-
23- ### 从官方源安装(由于安全问题暂时下架)
24-
25- ``` bash
26- pip install -U agentkit-sdk-python --index-url https://pypi.org/simple
27- ```
28-
29- > ** 说明** :由于安全问题,官方源暂时下架。
30-
3119## 源码安装
3220
33- 适用于需要修改源码或参与开发的场景:
34- ### 从内部Codebase仓库clone
35-
36- ``` bash
37- git clone
[email protected] :iaasng/agentkit-sdk-python.git
38- cd agentkit-sdk-python
39- pip install -e .
40- ```
41-
42- ### 从官方GitHub仓库clone(官方Github仓库还在走申请流程,暂不开放)
43-
21+ 适用于需要修改源码或参与开发的场景
4422``` bash
4523git clone
[email protected] :volcengine/agentkit-sdk-python.git
4624cd agentkit-sdk-python
Original file line number Diff line number Diff line change 1010
1111** 解决方案** :
12121 . 确认网络连接正常
13- 2 . 使用内部源安装:
14- ``` bash
15- pip install --pre -U agentkit-sdk-python --index-url https://artifacts-cn-beijing.volces.com/repository/agentkit/simple/ --extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --trusted-host mirrors.tuna.tsinghua.edu.cn
16- ```
17- 3 . 检查 Python 版本是否为 3.12+
13+ 2 . 检查 Python 版本是否为 3.12+
1814
1915### 问题:CLI 命令不可用
2016
2319** 解决方案** :
24201 . 确认安装成功:` pip list | grep agentkit `
25212 . 检查 PATH 环境变量是否包含 pip 的 bin 目录
26- 3 . 尝试重新安装:` pip install -U agentkit-sdk-python-inhouse-nightly `
22+ 3 . 尝试重新安装:` pip install agentkit-sdk-python `
2723
2824## 配置问题
2925
Original file line number Diff line number Diff line change @@ -122,14 +122,6 @@ export MODEL_AGENT_API_KEY=your_model_api_key
122122- 请将 ` your_ak ` 、` your_sk ` 等占位符替换为您的实际配置值
123123- ` AGENTKIT_TOOL_ID ` 从火山引擎控制台创建沙箱工具后获取
124124
125- ** 🧪 测试环境配置(可选):**
126-
127- 如果您的沙箱工具实例,是创建在测试环境账号下(如PPE),您需要在环境变量中显示指定 endpoint,否则默认连接正式环境,可能会导致调用失败。配置如下:
128-
129- ``` bash
130- export AGENTKIT_TOOL_HOST=agentkit-ppe.cn-beijing.volces-test.com
131- export AGENTKIT_TOOL_SERVICE_CODE=agentkit_ppe
132- ```
133125### 3. 本地启动智能体服务
134126
135127配置完环境变量后,运行以下命令启动智能体:
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ source .venv/bin/active
3838
3939``` bash
4040uv pip install veadk-python
41- uv pip install google-
42- pip install -U agentkit-sdk-python --index-url https://artifacts-cn-beijing.volces.com/repository/agentkit/simple/ --extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --trusted-host mirrors.tuna.tsinghua.edu.cn
41+ uv pip install google-adk
42+ pip install agentkit-sdk-python
4343```
4444
4545## 第二步:创建 AgentKit MCP
You can’t perform that action at this time.
0 commit comments