-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新增Console AgentBuilder对话能力 #203
Conversation
response (obj: `AgentBuilder`): 智能体实例 | ||
""" | ||
super().__init__(**kwargs) | ||
if len(app_id) == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议此处加上 isinstance(app_id, str)
的校验,不然用户传入 int 类型的app_id,报错为int has not len()
,用户体验不好
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已解决
|
||
## 简介 | ||
|
||
AgentBuilder组件支持调用Console端已发布智能体应用的会话能力 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console端:进一步说明是哪个地址的哪个功能创建的功能
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已补充
from typing import Union | ||
|
||
|
||
class HTTPRequest(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件名不要叫model,容易引起歧义
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改成data_class
cookbooks/agent_builder.ipynb
Outdated
"os.environ[\"APPBUILDER_TOKEN\"] =\"...\"\n", | ||
"\n", | ||
"# 使用获取到的应用ID,初始化Agent实例\n", | ||
"agent_builder = appbuilder.AgentBuilder(\"35f4fed3-d530-4dad-bc8e-f2150a4450be\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个appid,是所有的token都能访问么?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,当前逻辑是用户账户下的密钥,可以调用所有已发布的应用
cookbooks/agent_builder.ipynb
Outdated
"import os\n", | ||
"\n", | ||
"# 配置密钥\n", | ||
"os.environ[\"APPBUILDER_TOKEN\"] =\"...\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里最好加个注释:配置密钥 + 注意以下示例仅针对官方已经创建的appid有效,可以提供个话术
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,已补充
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.