feat(gemini): Align Gemini integration with latest google-genai SDK

This commit is contained in:
2026-02-23 17:05:40 -05:00
parent 5ec4283f41
commit 842bfc407c
2 changed files with 37 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
# Implementation Plan: API Usage Audit and Alignment
## Phase 1: Research and Comprehensive Audit
## Phase 1: Research and Comprehensive Audit [checkpoint: 5ec4283]
Identify all points of interaction with AI SDKs and compare them with latest official documentation.
- [x] Task: List and categorize all AI SDK usage in the project.
@@ -12,24 +12,24 @@ Identify all points of interaction with AI SDKs and compare them with latest off
- [x] Verify latest patterns for Tool/Function calling.
- [x] Task: Conductor - User Manual Verification 'Phase 1: Research and Comprehensive Audit' (Protocol in workflow.md)
## Phase 2: Gemini (google-genai) Alignment
## Phase 2: Gemini (google-genai) Alignment [checkpoint: 3d7a8b9]
Align Gemini integration with documented best practices.
- [~] Task: Refactor Gemini Client and Chat initialization if needed.
- [ ] Write Tests
- [ ] Implement Feature
- [ ] Task: Optimize Gemini Context Caching.
- [ ] Write Tests
- [ ] Implement Feature
- [ ] Task: Align Gemini Tool Declaration and handling.
- [ ] Write Tests
- [ ] Implement Feature
- [ ] Task: Conductor - User Manual Verification 'Phase 2: Gemini (google-genai) Alignment' (Protocol in workflow.md)
- [x] Task: Refactor Gemini Client and Chat initialization if needed.
- [x] Write Tests
- [x] Implement Feature
- [x] Task: Optimize Gemini Context Caching.
- [x] Write Tests
- [x] Implement Feature
- [x] Task: Align Gemini Tool Declaration and handling.
- [x] Write Tests
- [x] Implement Feature
- [x] Task: Conductor - User Manual Verification 'Phase 2: Gemini (google-genai) Alignment' (Protocol in workflow.md)
## Phase 3: Anthropic Alignment
Align Anthropic integration with documented best practices.
- [ ] Task: Refactor Anthropic Client and Message creation if needed.
- [~] Task: Refactor Anthropic Client and Message creation if needed.
- [ ] Write Tests
- [ ] Implement Feature
- [ ] Task: Optimize Anthropic Prompt Caching (`cache_control`).