mirascope 1.16.4__py3-none-any.whl → 1.16.5__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.
- mirascope/integrations/otel/__init__.py +6 -1
- {mirascope-1.16.4.dist-info → mirascope-1.16.5.dist-info}/METADATA +3 -3
- {mirascope-1.16.4.dist-info → mirascope-1.16.5.dist-info}/RECORD +5 -5
- {mirascope-1.16.4.dist-info → mirascope-1.16.5.dist-info}/WHEEL +0 -0
- {mirascope-1.16.4.dist-info → mirascope-1.16.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
from contextlib import suppress
|
|
2
|
+
|
|
1
3
|
from ._utils import configure
|
|
2
|
-
|
|
4
|
+
|
|
5
|
+
with suppress(ImportError):
|
|
6
|
+
from ._with_hyperdx import with_hyperdx
|
|
7
|
+
|
|
3
8
|
from ._with_otel import with_otel
|
|
4
9
|
|
|
5
10
|
__all__ = ["configure", "with_hyperdx", "with_otel"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mirascope
|
|
3
|
-
Version: 1.16.
|
|
3
|
+
Version: 1.16.5
|
|
4
4
|
Summary: LLM abstractions that aren't obstructions
|
|
5
5
|
Project-URL: Homepage, https://mirascope.com
|
|
6
6
|
Project-URL: Documentation, https://mirascope.com/WELCOME
|
|
@@ -129,14 +129,14 @@ export OPENAI_API_KEY=XXXXX
|
|
|
129
129
|
Make your first call to an LLM to extract the title and author of a book from unstructured text:
|
|
130
130
|
|
|
131
131
|
```python
|
|
132
|
-
from mirascope
|
|
132
|
+
from mirascope import llm
|
|
133
133
|
from pydantic import BaseModel
|
|
134
134
|
|
|
135
135
|
class Book(BaseModel):
|
|
136
136
|
title: str
|
|
137
137
|
author: str
|
|
138
138
|
|
|
139
|
-
@
|
|
139
|
+
@llm.call(provider="openai", model="gpt-4o-mini", response_model=Book)
|
|
140
140
|
def extract_book(text: str) -> str:
|
|
141
141
|
return f"Extract {text}"
|
|
142
142
|
|
|
@@ -292,7 +292,7 @@ mirascope/integrations/langfuse/_with_langfuse.py,sha256=UTA--jCB9K8SqUmaVz_X_rB
|
|
|
292
292
|
mirascope/integrations/logfire/__init__.py,sha256=OWceKOygazwUG1XLGvSu3T2-AqnuBxf3--fbwGZ1G9o,68
|
|
293
293
|
mirascope/integrations/logfire/_utils.py,sha256=sZqkvSqyURdkWhFGeBnJ1Ifa2dQvCCf6YbSuzInnK5A,7064
|
|
294
294
|
mirascope/integrations/logfire/_with_logfire.py,sha256=DfN6QbCrTlR1K3bS4M43rP8rvYKPgAqfx2k0MpzHY3g,1799
|
|
295
|
-
mirascope/integrations/otel/__init__.py,sha256=
|
|
295
|
+
mirascope/integrations/otel/__init__.py,sha256=OzboYfm3fUNwKTuu08KX83hQHYI4oZYN2DjgXoKcJS4,225
|
|
296
296
|
mirascope/integrations/otel/_utils.py,sha256=SCVb3MpcpqLpCpumJEbEdINceNdusnyT6iuKPz66sBc,8778
|
|
297
297
|
mirascope/integrations/otel/_with_hyperdx.py,sha256=f17uxXQk5zZPtyj6zwPwJz5i7atsnUPOoq1LqT8JO0E,1637
|
|
298
298
|
mirascope/integrations/otel/_with_otel.py,sha256=tbjd6BEbcSfnsm5CWHBoHwbRNrHt6-t4or-SYGQSD-w,1659
|
|
@@ -331,7 +331,7 @@ mirascope/v0/base/ops_utils.py,sha256=1Qq-VIwgHBaYutiZsS2MUQ4OgPC3APyywI5bTiTAmA
|
|
|
331
331
|
mirascope/v0/base/prompts.py,sha256=FM2Yz98cSnDceYogiwPrp4BALf3_F3d4fIOCGAkd-SE,1298
|
|
332
332
|
mirascope/v0/base/types.py,sha256=ZfatJoX0Yl0e3jhv0D_MhiSVHLYUeJsdN3um3iE10zY,352
|
|
333
333
|
mirascope/v0/base/utils.py,sha256=XREPENRQTu8gpMhHU8RC8qH_am3FfGUvY-dJ6x8i-mw,681
|
|
334
|
-
mirascope-1.16.
|
|
335
|
-
mirascope-1.16.
|
|
336
|
-
mirascope-1.16.
|
|
337
|
-
mirascope-1.16.
|
|
334
|
+
mirascope-1.16.5.dist-info/METADATA,sha256=V4kLdWNd_vccYxljR9RUzinGzMF_L-KbzMtQQEbZmnQ,8545
|
|
335
|
+
mirascope-1.16.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
336
|
+
mirascope-1.16.5.dist-info/licenses/LICENSE,sha256=LAs5Q8mdawTsVdONpDGukwsoc4KEUBmmonDEL39b23Y,1072
|
|
337
|
+
mirascope-1.16.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|