fix: update agno to v2 and fix airllm availability tests (#170)

The agno dependency was pinned to <2.0 but the code uses agno.db.sqlite
(a 2.x API), breaking all tests in CI. Also fix airllm provider tests
to patch importlib.util.find_spec (what the production code uses) instead
of builtins.__import__.

Co-authored-by: Trip T <trip@local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alexander Whitestone
2026-03-11 12:40:45 -04:00
committed by GitHub
parent 9d78eb31d1
commit 68115fe477
2 changed files with 3 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ packages = [
[tool.poetry.dependencies]
python = ">=3.11,<4"
agno = { version = ">=1.4.0,<2.0", extras = ["sqlite"] }
agno = { version = ">=2.0.0,<3.0", extras = ["sqlite"] }
ollama = ">=0.3.0,<1.0"
openai = ">=1.0.0"
fastapi = ">=0.115.0,<1.0"