Issue with Vercel AI SDK: Internal Tooling Ignored When Using Personality System Prompts #4749
Unanswered
aether6430
asked this question in
Help
Replies: 1 comment 1 reply
-
You need to engineer (system) prompts that work for tool calling (and ideally have evals). You can do this by e.g. including tools and tool call examples in the prompt. It also depends on provider and model used. Please check out our prompt engineering guide as a starting point: https://sdk.vercel.ai/docs/ai-sdk-core/prompt-engineering |
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
-
Hello,
I'm encountering an issue while using the Vercel AI SDK. The problem arises when I try to run the code with a few system prompts to add personality to the bot. The bot completely ignores the internal tooling functionality. However, when I remove the personality system prompts, everything works as expected, and the internal tooling is used correctly.
Expected Behavior:
The bot should use the internal tooling as expected when personality system prompts are present.
Actual Behavior:
The bot fails to use the internal tooling when personality system prompts are used.
Environment:
Additional Information:
I have checked for errors on the AI side, and there are none. And there's no issues on the front end, I am sure about this because after logging all the
result.toolCalls
which are being sent from the backend it returns an empty array[]
.Let me know if you need more details or if there's a workaround I can try in the meantime!
Thanks in advance for your help!
P.S:
I have found a similar issue, but that didn't seem to help me.
Beta Was this translation helpful? Give feedback.
All reactions