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 f2dcb61 commit 2b1e0acCopy full SHA for 2b1e0ac
temporalio/contrib/openai_agents/_temporal_openai_agents.py
@@ -52,11 +52,15 @@
52
)
53
from temporalio.worker.workflow_sandbox import SandboxedWorkflowRunner
54
55
+# MCP only supported on python >=3.10
56
+try:
57
+ from temporalio.contrib.openai_agents._mcp import TemporalMCPServer
58
+except ImportError:
59
+ pass
60
+
61
if typing.TYPE_CHECKING:
62
from agents.mcp import MCPServer
63
- from temporalio.contrib.openai_agents._mcp import TemporalMCPServer
-
64
65
@contextmanager
66
def set_open_ai_agent_temporal_overrides(
0 commit comments