ailoy-py 0.0.1__cp310-cp310-win_amd64.whl → 0.0.3__cp310-cp310-win_amd64.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.
ailoy/__init__.py CHANGED
@@ -9,6 +9,25 @@ _delvewheel_patch_1_10_1()
9
9
  del _delvewheel_patch_1_10_1
10
10
  # end delvewheel patch
11
11
 
12
- from .agent import Agent # noqa: F401
12
+ if __doc__ is None:
13
+ try:
14
+ import importlib.metadata
15
+
16
+ meta = importlib.metadata.metadata("ailoy-py")
17
+ __doc__ = meta.get("Description")
18
+ except importlib.metadata.PackageNotFoundError:
19
+ pass
20
+
21
+ if __doc__ is None:
22
+ from pathlib import Path
23
+
24
+ readme = Path(__file__).parent.parent / "README.md"
25
+ if readme.exists():
26
+ __doc__ = readme.read_text()
27
+ else: # fallback docstring
28
+ __doc__ = "# ailoy-py\n\nPython binding for Ailoy runtime APIs"
29
+
30
+ from .agent import Agent, AudioContent, BearerAuthenticator, ImageContent, TextContent, ToolAuthenticator # noqa: F401
31
+ from .models import APIModel, LocalModel # noqa: F401
13
32
  from .runtime import AsyncRuntime, Runtime # noqa: F401
14
33
  from .vector_store import VectorStore # noqa: F401