Dependency Analysis
Shared dependencies across AI Platform packages
Version Conflicts
Python Version
| Package | Current | Target |
|---|---|---|
| ai-korrespondenz | >=3.11 | >=3.12 |
| ai-voicememo | >=3.10 | >=3.12 |
| ai-scholar | >=3.10 | >=3.12 |
| ai-agenda | >=3.11 | >=3.12 |
| ai-core | >=3.10 | >=3.12 |
google-generativeai vs google-genai
The google-generativeai package is deprecated. Migration required:
Old (deprecated):
import google.generativeai as genai
genai.configure(api_key=key)
model = genai.GenerativeModel('gemini-3.8-flash')
response = model.generate_content(prompt)New (google-genai):
from google import genai
client = genai.Client(api_key=key)
response = client.models.generate_content(
model='gemini-3.8-flash',
contents=prompt
)Dependency Graph
ai-platform-shared (foundation)
│
├── ai-korrespondenz
│ └── ai-agenda (optional)
│
├── ai-voicememo
│
├── ai-scholar
│ └── ai-core
│
└── ai-viewer
└── ai-core/pdai
Recommended Base Dependencies
For new packages joining the platform:
[project]
requires-python = ">=3.12"
dependencies = [
"ai-platform-shared>=1.0.0", # Shared infrastructure
"pydantic>=2.10.0",
"pydantic-settings>=2.6.0",
]Version Pinning Strategy
- Major versions: Pin to major (e.g.,
>=2.0.0) - Critical packages: Pin to minor (e.g.,
>=2.10.0) - Security-sensitive: Use ranges (e.g.,
>=2.10.0,<3.0.0)
Dependency Update Procedure
- Update in
.ai-platform/pyproject.tomlfirst - Test with core packages
- Propagate to individual packages
- Run integration tests