Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /pydantic_logfire /logfire /_internal /integrations /dspy.py
| from typing import Any | |
| import logfire | |
| try: | |
| from openinference.instrumentation.dspy import DSPyInstrumentor | |
| except ImportError: | |
| raise RuntimeError( | |
| 'The `logfire.instrument_dspy()` method ' | |
| 'requires the `openinference-instrumentation-dspy` package.\n' | |
| 'You can install this with:\n' | |
| " pip install 'logfire[dspy]'" | |
| ) | |
| def instrument_dspy(logfire_instance: logfire.Logfire, **kwargs: Any): | |
| DSPyInstrumentor().instrument( | |
| tracer_provider=logfire_instance.config.get_tracer_provider(), | |
| **kwargs, | |
| ) | |
Xet Storage Details
- Size:
- 568 Bytes
- Xet hash:
- c9f9945306e344f52a2b4b985c0a2b616844b670a90cf6559d661657e9e21062
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.