agno 2.2.2__py3-none-any.whl → 2.2.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agno/db/mongo/__init__.py +15 -1
- agno/db/mongo/async_mongo.py +1999 -0
- agno/os/schema.py +0 -1
- agno/team/team.py +8 -2
- {agno-2.2.2.dist-info → agno-2.2.3.dist-info}/METADATA +1 -1
- {agno-2.2.2.dist-info → agno-2.2.3.dist-info}/RECORD +9 -8
- {agno-2.2.2.dist-info → agno-2.2.3.dist-info}/WHEEL +0 -0
- {agno-2.2.2.dist-info → agno-2.2.3.dist-info}/licenses/LICENSE +0 -0
- {agno-2.2.2.dist-info → agno-2.2.3.dist-info}/top_level.txt +0 -0
agno/db/mongo/__init__.py
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING
|
|
2
|
+
|
|
1
3
|
from agno.db.mongo.mongo import MongoDb
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
if TYPE_CHECKING:
|
|
6
|
+
from agno.db.mongo.async_mongo import AsyncMongoDb
|
|
7
|
+
|
|
8
|
+
__all__ = ["AsyncMongoDb", "MongoDb"]
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def __getattr__(name: str):
|
|
12
|
+
"""Lazy import AsyncMongoDb only when accessed."""
|
|
13
|
+
if name == "AsyncMongoDb":
|
|
14
|
+
from agno.db.mongo.async_mongo import AsyncMongoDb
|
|
15
|
+
|
|
16
|
+
return AsyncMongoDb
|
|
17
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|