From a80dc449ed68d94856888c0282d964b4eba175d3 Mon Sep 17 00:00:00 2001 From: ideoutrea Date: Wed, 20 Mar 2024 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=B3=A8=E9=87=8A=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appbuilder/core/console/agent_builder/README.md | 2 +- appbuilder/core/console/agent_builder/agent_builder.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/appbuilder/core/console/agent_builder/README.md b/appbuilder/core/console/agent_builder/README.md index dff1e4078..9f646d211 100644 --- a/appbuilder/core/console/agent_builder/README.md +++ b/appbuilder/core/console/agent_builder/README.md @@ -2,7 +2,7 @@ ## 简介 -AgentBuilder组件支持调用在[百度智能云千帆AppBuilder](https://cloud.baidu.com/product/AppBuilder)平台上通过AgentBuilder框架构建并发布的智能体应用。 +AgentBuilder组件支持调用在[百度智能云千帆AppBuilder](https://cloud.baidu.com/product/AppBuilder)平台上通过AgentBuilder构建并发布的智能体应用。 ### 功能介绍 diff --git a/appbuilder/core/console/agent_builder/agent_builder.py b/appbuilder/core/console/agent_builder/agent_builder.py index e4f84ccab..1bdd2ce78 100644 --- a/appbuilder/core/console/agent_builder/agent_builder.py +++ b/appbuilder/core/console/agent_builder/agent_builder.py @@ -25,7 +25,8 @@ class AgentBuilder(Component): r""" - AgentBuilder组件支持调用Console端已发布智能体应用的会话能力,具体包括创建会话、上传文档、运行对话等 + AgentBuilder组件支持调用在[百度智能云千帆AppBuilder](https://cloud.baidu.com/product/AppBuilder)平台上通过AgentBuilder + 构建并发布的智能体应用,具体包括创建会话、上传文档、运行对话等。 Examples: ... code-block:: python import appbuilder @@ -74,7 +75,7 @@ def create_conversation(self) -> str: return resp.result.conversation_id def upload_local_file(self, conversation_id, local_file_path: str) -> str: - r"""上传文件并将文件与会话ID进行绑定,后续可使用该文件ID进行对话 + r"""上传文件并将文件与会话ID进行绑定,后续可使用该文件ID进行对话,目前仅支持上传xlsx、jsonl、pdf、png等文件格式 参数: conversation_id (str: 必须) : 会话ID local_file_path (str: 必须) : 本地文件路径