Replies: 3 comments 2 replies
-
|
well. i guess one way is just to ignore the text part when tool_invocation === "xxxx" |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Yes you set |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@li2109 https://v5.ai-sdk.dev/docs/reference/ai-sdk-core/generate-text#stop-when this should be what you want in v5. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
can we configure it so that when LLM decides to call a tool, it does not add another text part trying to summarize the returned result.
current behavior:
user query triggers a tool call.
triggered tool returns some data.
aisdk will return a message with two parts: tool invocation part and text part.
desired behavior:
user query triggers a tool call.
triggered tool returns some data.
aisdk only returns a message with tool invocation part
Beta Was this translation helpful? Give feedback.
All reactions