Skip to content

Commit

Permalink
补充注释说明
Browse files Browse the repository at this point in the history
  • Loading branch information
ide-rea committed Mar 20, 2024
1 parent 1722db7 commit a80dc44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appbuilder/core/console/agent_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 简介

AgentBuilder组件支持调用在[百度智能云千帆AppBuilder](https://cloud.baidu.com/product/AppBuilder)平台上通过AgentBuilder框架构建并发布的智能体应用
AgentBuilder组件支持调用在[百度智能云千帆AppBuilder](https://cloud.baidu.com/product/AppBuilder)平台上通过AgentBuilder构建并发布的智能体应用

### 功能介绍

Expand Down
5 changes: 3 additions & 2 deletions appbuilder/core/console/agent_builder/agent_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: 必须) : 本地文件路径
Expand Down

0 comments on commit a80dc44

Please sign in to comment.