Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tool call completion will not auto trigger request if message content isn't empty #4652

Open
yyjhao opened this issue Feb 1, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yyjhao
Copy link

yyjhao commented Feb 1, 2025

Description

This line: https://github.com/vercel/ai/blob/main/packages/react/src/use-chat.ts#L351

breaks some agents that has non-empty message with a tool call. The message that the agent has is not necessarily the result of the tool call, it may just be the agent saying that they are going to use a tool. It breaks for me with sync client tool use.

Code example

No response

AI provider

No response

Additional context

No response

@yyjhao yyjhao added the bug Something isn't working label Feb 1, 2025
@lgrammel lgrammel self-assigned this Feb 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants