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

工具调用示例agent_llm_with_tools如何不假设必定有工具调用 #25

Open
mostcute opened this issue Feb 18, 2025 · 2 comments

Comments

@mostcute
Copy link

这个示例有一个假设,也就是 ChatModel 一定会做出 tool 调用的决策。
目前从代码层没理解到编排后的效果,不知道如何实现无需调用tool时怎么实现正常的chat功能

@mostcute mostcute changed the title 工具调用实例如何不假设必定有工具调用 工具调用示例agent_llm_with_tools如何不假设必定有工具调用 Feb 18, 2025
@mostcute
Copy link
Author

就是有分支型的操作只能使用graph了是吧,chain只能按固定顺序执行

@kuhahalong
Copy link
Contributor

kuhahalong commented Feb 19, 2025

就是有分支型的操作只能使用graph了是吧,chain只能按固定顺序执行

chain 也有 branch。

另外,这个示例就是展示的 tool 调用的场景,是假设了一定会有 tool 调用的。对于可能是直接的 chat 也可能是 tool 调用的,可以参考 react agent 的例子https://github.com/cloudwego/eino-examples/blob/main/flow/agent/react/react.go

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

No branches or pull requests

2 participants