We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65388f6 commit b8c3ae6Copy full SHA for b8c3ae6
pydantic_ai_slim/pydantic_ai/durable_exec/temporal/__init__.py
@@ -36,6 +36,14 @@
36
'TemporalWrapperToolset',
37
]
38
39
+# We need eagerly import the anyio backends or it will happens inside workflow code and temporal has issues
40
+import anyio._backends._asyncio # pyright: ignore[reportUnusedImport]
41
+
42
+try:
43
+ import anyio._backends._trio # noqa F401 # pyright: ignore[reportUnusedImport]
44
+except ImportError:
45
+ pass
46
47
48
class PydanticAIPlugin(ClientPlugin, WorkerPlugin):
49
"""Temporal client and worker plugin for Pydantic AI."""
0 commit comments