Skip to content

Commit 905f194

Browse files
authored
Merge branch 'volcengine:main' into main
2 parents e96b6d8 + 205e5b7 commit 905f194

File tree

121 files changed

+5060
-4393
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+5060
-4393
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ cython_debug/
167167
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
168168
.idea/
169169

170+
# Visual Studio Code
171+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
172+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
173+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
174+
# you could uncomment the following to ignore the entire vscode folder
175+
.vscode/
176+
170177
# Ruff stuff:
171178
.ruff_cache/
172179

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ A [tutorial](https://github.com/volcengine/veadk-python/blob/main/veadk_tutorial
1515

1616
## Installation
1717

18+
### From PyPI
19+
20+
```python
21+
pip install veadk-python
22+
23+
# install extensions
24+
pip install veadk-python[extensions]
25+
```
26+
27+
### Build from source
28+
1829
We use `uv` to build this project ([how-to-install-uv](https://docs.astral.sh/uv/getting-started/installation/)).
1930

2031
```bash

config.yaml.full

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ model:
1717
embedding:
1818
name: doubao-embedding-text-240715
1919
dim: 2560
20-
api_base: https://ark.cn-beijing.volces.com/api/v3/embeddings
20+
api_base: https://ark.cn-beijing.volces.com/api/v3/
2121
api_key:
2222
video:
2323
name: doubao-seedance-1-0-pro-250528
@@ -119,6 +119,10 @@ database:
119119
endpoint: tos-cn-beijing.volces.com # default Volcengine TOS endpoint
120120
region: cn-beijing # default Volcengine TOS region
121121
bucket:
122+
mem0:
123+
base_url:
124+
api_key:
125+
122126

123127

124128
# [optional] for prompt optimization in cli/app

docs/content/1.introduction/1.overview.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ seo:
99
effortlessly with Docus.
1010
---
1111

12-
欢迎使用火山引擎智能体框架 **VeADK(Volcengine Agent Development Kit)**,是由[火山引擎](https://www.volcengine.com/)推出的为 Agent 智能体的应用构建提供开发、部署、观测、评测等全流程云原生解决方案。
12+
火山引擎智能体框架 **VeADK(Volcengine Agent Development Kit)**,是由[火山引擎](https://www.volcengine.com/)推出的为 Agent 智能体的应用构建提供开发、部署、观测、评测等全流程云原生解决方案。
1313

14-
相较于现有的智能体开发框架,具备与火山引擎产品体系深度融合的优势,帮助开发者更高效地构建企业级 AI 智能体应用。
14+
相较于现有的智能体开发框架,VeADK 具备与火山引擎产品体系深度融合的优势,帮助开发者更高效地构建企业级 AI 智能体应用。
1515

16-
## 特性
16+
## 核心能力
1717

1818
- **生态兼容**:与 Google ADK 完全兼容
19-
- **快速部署**本地项目部署到云端的时延在分钟级别,并提供镜像部署、代码部署等多种部署形式
20-
- **一证通行**:基于火山引擎AK/SK进行企业级统一密钥管理
19+
- **快速部署**本地项目分钟级部署云端,提供代码打包、镜像构建等多种部署形式
20+
- **一证通行**:基于火山引擎AK/SK进行企业级统一身份和密钥管理
2121

22-
## 核心能力
22+
## 特性
2323

2424
### 更快速的企业级部署
2525

docs/content/1.introduction/2.installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 安装
3-
description: VeADK安装方式
3+
description: VeADK 安装方式
44
navigation:
55
icon: i-lucide-download
66
---
@@ -21,19 +21,19 @@ pip install veadk-python==0.2.7
2121

2222
:::
2323

24-
<!-- 如果您使用知识库、长期记忆等进阶功能,请进一步安装 `veadk-python` 中的扩展包:
24+
如果您使用知识库、长期记忆等进阶功能,请进一步安装 `veadk-python` 中的扩展包:
2525

2626
```bash [Terminal]
2727
pip install veadk-python[extensions]
28-
``` -->
28+
```
2929

3030
## 从源码构建
3131

3232
::steps
3333

3434
### 下载源码至本地
3535

36-
将VeADK的代码包从Github下载到本地
36+
将 VeADK 的代码包从 Github 下载到本地
3737

3838
```bash [Terminal]
3939
git clone https://github.com/volcengine/veadk-python.git

docs/content/1.introduction/3.quickstart.md

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,58 @@ import asyncio
1919
from veadk import Agent
2020

2121
agent = Agent()
22-
asyncio.run(agent.run("Hello world!"))
22+
response = asyncio.run(agent.run("Hello world!"))
23+
24+
print(response)
2325
```
2426

2527
### 执行
2628

27-
您需要通过环境变量方式,来设置能够调用大模型的 API Key 或者其它身份验证信息。
29+
您需要通过环境变量方式,来设置能够调用大模型的 API Key 或者其它身份验证信息。例如,通过火山引擎方舟大模型平台的API Key:
2830

2931
```bash [Terminal]
30-
# 通过 API Key
3132
MODEL_AGENT_API_KEY=... python agent.py
33+
```
34+
35+
或者通过火山引擎 AK/SK:
3236

33-
# 通过火山引擎 AK/SK
37+
```bash [Terminal]
3438
VOLCENGINE_ACCESS_KEY=... VOLCENGINE_SECRET_KEY=... python agent.py
3539
```
3640

41+
::warning
42+
通过火山引擎 AK/SK 来运行智能体时,将会自动从您的方舟平台获取 API Key,这要求您在方舟平台至少已经创建一个 API Key。[了解如何创建方舟大模型平台API Key](https://www.volcengine.com/docs/82379/1361424)
43+
::
44+
45+
### 进阶
46+
47+
您也可以在项目根目录下创建一个 `config.yaml` 来填入相关配置。
48+
49+
::tip
50+
VeADK 可以自动将您根目录下的 `config.yaml` 文件根据层次使用下划线铺平,转为大写后设置为环境变量,详见[这里](../configurations/system)
51+
::
52+
53+
::code-tree{default-value="app/config.yaml"}
54+
55+
```yaml [app/config.yaml]
56+
volcengine:
57+
access_key:
58+
secret_key:
59+
```
60+
61+
```python [app/agent.py]
62+
import asyncio
63+
64+
from veadk import Agent
65+
66+
agent = Agent()
67+
response = asyncio.run(agent.run("Hello world!"))
68+
69+
print(response)
70+
```
71+
72+
::
73+
74+
完整的配置项可以参考[这里](../configurations/envs)
75+
3776
::

docs/content/1.introduction/4.troubleshooting.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshooting
33
description: 安装、运行以及使用中的各类常见问题汇总
44
navigation:
5-
icon: i-lucide-wrench
5+
icon: i-lucide-file-question-mark
66
---
77

88
## 安装
@@ -24,3 +24,12 @@ navigation:
2424

2525
1. **卡在 release 阶段**
2626
- 请先在 VeFaaS 平台开通权限。
27+
28+
- ![开通权限](/images/troubleshooting-01.png)
29+
30+
- 新账号开通后,缺少ServerlessApplicationRole授权
31+
- 前往火山引擎函数服务官网,进入创建应用页面(例如[这里](https://console.volcengine.com/vefaas/region:vefaas+cn-beijing/application/create?templateId=67f7b4678af5a6000850556c))点击「一键授权」即可
32+
- ![角色授权](/images/troubleshooting-02.png)
33+
34+
2. **安装依赖失败,显示依赖安装空间不足**
35+
- VeFaaS 最大依赖安装大小默认为 250 MB,若需更大空间,请联系 VeFaaS 产品团队扩容。

docs/content/2.configurations/1.system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 配置管理系统
33
description: 实现自动身份管理、云上资源设施管理等
44
navigation:
5-
icon: i-lucide-heading-1
5+
icon: i-lucide-settings
66
---
77

88
VeADK 内置了一套配置管理系统,您能够通过定义一个 `config.yaml` 文件来管理您的各项配置。文件中的配置项将会在运行时被自动加载为对应的环境变量。

docs/content/2.configurations/2.envs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 环境变量
33
description: 更安全、更快捷的配置入口
44
navigation:
5-
icon: i-lucide-heading-1
5+
icon: i-lucide-settings
66
---
77

88
## 火山引擎生态

0 commit comments

Comments
 (0)