Add tool_choice prop to render
Feature Description
Render does not have the tool_choice prop available, making forcing a specific tool of choice impossible, making all calls using auto which is the default.
Use Case
Forcing the model to call a specific tool constantly and ensuring the tool is called every time. It works better than trying to force it through a prompt.
Additional context
No response
Would love this too
Forcing the model to call a specific tool constantly and ensuring the tool is called every time.
Please check out generateObject and streamObject:
https://sdk.vercel.ai/docs/ai-sdk-core/generating-structured-data
Would they work for your use case?
@lgrammel thanks, this can't be used with multiple tools though, right?