bir-sdk 0.1.0__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.
- bir/__init__.py +47 -0
- bir/_sdk.py +1688 -0
- bir/evals.py +1454 -0
- bir/integrations/__init__.py +21 -0
- bir/integrations/_common.py +47 -0
- bir/integrations/anthropic.py +92 -0
- bir/integrations/cohere.py +87 -0
- bir/integrations/google.py +84 -0
- bir/integrations/langchain.py +429 -0
- bir/integrations/litellm.py +108 -0
- bir/integrations/llamaindex.py +374 -0
- bir/integrations/mistral.py +87 -0
- bir/integrations/openai.py +167 -0
- bir_sdk-0.1.0.dist-info/METADATA +584 -0
- bir_sdk-0.1.0.dist-info/RECORD +18 -0
- bir_sdk-0.1.0.dist-info/WHEEL +5 -0
- bir_sdk-0.1.0.dist-info/licenses/LICENSE +100 -0
- bir_sdk-0.1.0.dist-info/top_level.txt +1 -0
bir/__init__.py
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""Public API for the Bir Python SDK."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import PackageNotFoundError, version
|
|
4
|
+
|
|
5
|
+
from ._sdk import (
|
|
6
|
+
LoadedTrace,
|
|
7
|
+
PromptRecord,
|
|
8
|
+
SendEventsResult,
|
|
9
|
+
TraceEvent,
|
|
10
|
+
configure,
|
|
11
|
+
generation,
|
|
12
|
+
load_events,
|
|
13
|
+
load_traces,
|
|
14
|
+
observe,
|
|
15
|
+
prompt,
|
|
16
|
+
retrieval,
|
|
17
|
+
score,
|
|
18
|
+
send_events,
|
|
19
|
+
span,
|
|
20
|
+
tool_call,
|
|
21
|
+
trace,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
try:
|
|
25
|
+
__version__ = version("bir")
|
|
26
|
+
except PackageNotFoundError: # running from source (PYTHONPATH=src) without an install
|
|
27
|
+
__version__ = "0.1.0"
|
|
28
|
+
|
|
29
|
+
__all__ = [
|
|
30
|
+
"__version__",
|
|
31
|
+
"TraceEvent",
|
|
32
|
+
"LoadedTrace",
|
|
33
|
+
"SendEventsResult",
|
|
34
|
+
"PromptRecord",
|
|
35
|
+
"configure",
|
|
36
|
+
"load_events",
|
|
37
|
+
"load_traces",
|
|
38
|
+
"send_events",
|
|
39
|
+
"observe",
|
|
40
|
+
"trace",
|
|
41
|
+
"prompt",
|
|
42
|
+
"span",
|
|
43
|
+
"generation",
|
|
44
|
+
"tool_call",
|
|
45
|
+
"retrieval",
|
|
46
|
+
"score",
|
|
47
|
+
]
|