Skip to content
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

对react功能有些疑问。 #1426

Open
aiping312 opened this issue Jul 31, 2024 · 2 comments
Open

对react功能有些疑问。 #1426

aiping312 opened this issue Jul 31, 2024 · 2 comments

Comments

@aiping312
Copy link

aiping312 commented Jul 31, 2024

看了一下react实现,还是没搞清楚llm是根据什么上下文确认该调用哪个action,llm做决定前得需要知道,各个action的功能描述信息什么的吧?没找到收集相关信息传给llm的代码。

@iorisa
Copy link
Collaborator

iorisa commented Aug 1, 2024

实现业务逻辑有三种方案:

  1. 用SOP(standard operating procedure)形式实现业务流程。这种方案下流程是人工规划好的,operating(action)的输入输出都是设计好的,预期内的格式。由于人工规划好了流程,因此不需要agent理解各个action是干嘛的。
  2. 用角色扮演agent的形式来串联业务流程。这种方案下流程也是人工规划好的,每个角色agent的输入输出只是在语义层面时预期内的,数据格式则是可以灵活调整的。
  3. RoleZero agent的形式来串联业务流程。这种方案下流程是由agent规划的,只有这种情况下,agent才需要知道tool api的功能描述和使用方法。如果想了解更多的细节,可以参考:DataInterpreter的代码。

@zhaoweiguo
Copy link

实现业务逻辑有三种方案:

  1. 用SOP(standard operating procedure)形式实现业务流程。这种方案下流程是人工规划好的,operating(action)的输入输出都是设计好的,预期内的格式。由于人工规划好了流程,因此不需要agent理解各个action是干嘛的。
  2. 用角色扮演agent的形式来串联业务流程。这种方案下流程也是人工规划好的,每个角色agent的输入输出只是在语义层面时预期内的,数据格式则是可以灵活调整的。
  3. RoleZero agent的形式来串联业务流程。这种方案下流程是由agent规划的,只有这种情况下,agent才需要知道tool api的功能描述和使用方法。如果想了解更多的细节,可以参考:DataInterpreter的代码。

第二个方案,可不可以再详细讲一下?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants