Skip to content

v0.13.0: Forced tool choice (toolChoice)

Choose a tag to compare

@MarcelloDuarte MarcelloDuarte released this 25 Jul 23:07
· 11 commits to main since this release
ef982de

Maps the provider-agnostic toolChoice option to Gemini's toolConfig.functionCallingConfig (AUTO/ANY/NONE + allowedFunctionNames), on both chat and streaming. Validation in core ToolChoice throws before any HTTP call on an unenforceable choice. Requires papi-core ^0.13.