co-mono/packages/ai/src/providers
Mario Zechner 84018b0707 fix(ai): correct Gemini tool result format and improve type safety
- Fix tool result format for Gemini 3 Flash Preview compatibility
  - Use 'output' key for successful results (not 'result')
  - Use 'error' key for error results (not 'isError')
  - Per Google SDK documentation for FunctionResponse.response

- Improve type safety in google.ts provider
  - Add ImageContent import and use proper type guards
  - Replace 'as any' casts with proper typing
  - Import and use Schema type for tool parameters
  - Add proper typing for index deletion in error handler

- Add comprehensive test for Gemini 3 Flash tool calling
  - Tests successful tool call and result handling
  - Tests error tool result handling
  - Verifies fix for issue #213

Fixes #213
2025-12-18 13:43:39 +00:00
..
anthropic.ts Release v0.22.2 2025-12-15 22:09:14 +01:00
google.ts fix(ai): correct Gemini tool result format and improve type safety 2025-12-18 13:43:39 +00:00
openai-completions.ts Release v0.23.2 2025-12-17 17:56:00 +01:00
openai-responses.ts Release v0.23.2 2025-12-17 17:56:00 +01:00
transorm-messages.ts GitHub Copilot: auto-enable models, fix gpt-5 API, normalize tool call IDs 2025-12-15 20:06:11 +01:00