Repository navigation
v0.13.0: Forced tool choice (toolChoice)
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.