You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrations/third-party/mirascope.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ This will give you:
32
32
<figcaption>Mirascope Anthropic call span and Anthropic span and conversation</figcaption>
33
33
</figure>
34
34
35
-
Since Mirascope is built on top of [Pydantic][pydantic], you can use the [Pydantic plugin][pydantic-plugin] to track additional logs and metrics about model validation, which you can enable using the [`pydantic_plugin`][logfire.configure(pydantic_plugin)] configuration.
35
+
Since Mirascope is built on top of [Pydantic][pydantic], you can use the [Pydantic plugin](../pydantic.md) to track additional logs and metrics about model validation.
36
36
37
37
This can be particularly useful when [extracting structured information][mirascope-extracting-structured-information] using LLMs:
38
38
@@ -44,7 +44,8 @@ from mirascope.core import openai, prompt_template
44
44
from mirascope.integrations.logfire import with_logfire
1. This configuration means details about all Pydantic model validations will be recorded. You can also record details about validation failures only, or just metrics; see the [pydantic plugin docs][logfire.PydanticPlugin].
47
+
1. This configuration means details about all Pydantic model validations will be recorded. You can also record details about validation failures only, or just metrics; see the [pydantic plugin docs](../integrations/pydantic.md).
47
48
2. Since we've enabled the Pydantic Plugin, all Pydantic validations will be recorded in Logfire.
48
49
49
50
Learn more about the [Pydantic Plugin here](../integrations/pydantic.md).
from .formatterimportlogfire_formataslogfire_format, logfire_format_with_magicaslogfire_format_with_magic
10
11
from .instrumentimportLogfireArgsasLogfireArgs, instrumentasinstrument
@@ -24,7 +25,7 @@ from .json_schema import JsonSchemaProperties as JsonSchemaProperties, attribute
24
25
from .metricsimportProxyMeterProviderasProxyMeterProvider
25
26
from .stack_infoimportget_user_stack_infoasget_user_stack_info
26
27
from .tracerimportProxyTracerProviderasProxyTracerProvider
27
-
from .utilsimportSysExcInfoasSysExcInfo, handle_internal_errorsashandle_internal_errors, log_internal_erroraslog_internal_error, uniquify_sequenceasuniquify_sequence
28
+
from .utilsimportSysExcInfoasSysExcInfo, get_versionasget_version, handle_internal_errorsashandle_internal_errors, log_internal_erroraslog_internal_error, uniquify_sequenceasuniquify_sequence
0 commit comments