ailoy-py 0.0.1__cp311-cp311-macosx_14_0_arm64.whl → 0.0.3__cp311-cp311-macosx_14_0_arm64.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.
Binary file
Binary file
ailoy/__init__.py CHANGED
@@ -1,3 +1,22 @@
1
- from .agent import Agent # noqa: F401
1
+ if __doc__ is None:
2
+ try:
3
+ import importlib.metadata
4
+
5
+ meta = importlib.metadata.metadata("ailoy-py")
6
+ __doc__ = meta.get("Description")
7
+ except importlib.metadata.PackageNotFoundError:
8
+ pass
9
+
10
+ if __doc__ is None:
11
+ from pathlib import Path
12
+
13
+ readme = Path(__file__).parent.parent / "README.md"
14
+ if readme.exists():
15
+ __doc__ = readme.read_text()
16
+ else: # fallback docstring
17
+ __doc__ = "# ailoy-py\n\nPython binding for Ailoy runtime APIs"
18
+
19
+ from .agent import Agent, AudioContent, BearerAuthenticator, ImageContent, TextContent, ToolAuthenticator # noqa: F401
20
+ from .models import APIModel, LocalModel # noqa: F401
2
21
  from .runtime import AsyncRuntime, Runtime # noqa: F401
3
22
  from .vector_store import VectorStore # noqa: F401