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

高级编排如何实现函数调用 #3193

Closed
2 of 7 tasks
chung1912 opened this issue Nov 20, 2024 · 2 comments
Closed
2 of 7 tasks

高级编排如何实现函数调用 #3193

chung1912 opened this issue Nov 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@chung1912
Copy link

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号: v4.8.13-fix

问题描述, 日志截图
我有两个api接口,通过http的post请求,其中接口A传参a后返回结果R1,结果R1的部分内容可以作为接口B的参数传入,最终返回结果R2,我的问题是:
我如何通过工具调用,识别用户的输入的信息,提取出参数a,通过参数a发送post请求,拿到结果R1后,再根据用户的输入自动判断是否要将结果R1继续作为接口B的参数获取返回结果,如果是,则把R1利用工具调用提取出接口B需要的具体参数,再返回结果R2。
最终根据情况将结果R1或者结果R2传递给AI,然后再将最终结果返回到对话。
这个流程是否可以实现?

@chung1912 chung1912 added the bug Something isn't working label Nov 20, 2024
@2277419213
Copy link
Contributor

文本内容提取 -> Http请求 -> 问题分类 -> Http请求 -> AI对话

@c121914yu
Copy link
Collaborator

工具调用+提示词

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants