Skip to content

Commit

Permalink
补充AgentBuilder cookbook内容
Browse files Browse the repository at this point in the history
  • Loading branch information
ide-rea committed Mar 20, 2024
1 parent 6a55ee3 commit 3031cd0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cookbooks/agent_builder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"cell_type": "markdown",
"source": [
"# Console AgentBuilder示例\n",
"以下步骤依赖于正确的密钥配置,请进入[百度智能云千帆AppBuilder官网](https://cloud.baidu.com/product/AppBuilder)获取密钥配置\n",
"整体使用流程包括以下两个环节,其中流程1主要在[百度智能云千帆AppBuilder官网](https://cloud.baidu.com/product/AppBuilder)完成,流程2在AppBuilder SDK中以低代码的方式实现:\n",
"1. 官网创建并发布应用、获取应用ID、获取密钥\n",
"2. 初始化AgentBuidler实例、创建会话、上传文档(可选)、执行对话\n",
"\n",
"\n",
"以下分别提供两个样例,快递查询小助手、植物识别小助手来说明使用流程,注意以下流程用到的密钥可在图示位置中获取:\n",
"![配置](./agent_builder_resources/secret.png)\n",
"\n",
"## 1. 快递查询小助手\n",
Expand Down Expand Up @@ -46,7 +50,7 @@
"# 注意以下示例正确运行依赖的条件包括:\n",
"# 1. 在百度智能云千帆AppBuilder官网使用AgentBuilder创建应用且应用已发布\n",
"# 2. 密钥正确有效\n",
"# 3. 密钥需要与发布应用正确对应,即需要使用发布应用时的账户下的密钥\n",
"# 3. 密钥需要与发布应用正确对应,即需要使用发布应用的账户下的密钥\n",
"\n",
"# 配置密钥与应用ID\n",
"os.environ[\"APPBUILDER_TOKEN\"] =\"secret_key\"\n",
Expand Down Expand Up @@ -106,7 +110,7 @@
"# 注意以下示例正确运行依赖的条件包括:\n",
"# 1. 在百度智能云千帆AppBuilder官网使用AgentBuilder创建应用且应用已发布\n",
"# 2. 密钥正确有效\n",
"# 3. 密钥需要与发布的应用正确对应,即需要使用发布应用时的账户下的密钥\n",
"# 3. 密钥需要与发布的应用正确对应,即需要使用发布应用的账户下的密钥\n",
"\n",
"# 配置密钥与应用ID\n",
"os.environ[\"APPBUILDER_TOKEN\"] =\"...\"\n",
Expand Down

0 comments on commit 3031cd0

Please sign in to comment.