Skip to content

Commit 5b6e6de

Browse files
authored
Merge branch 'main' into openai/block_sqlite_session
2 parents 7eb03ed + da6616a commit 5b6e6de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

temporalio/contrib/openai_agents/_openai_runner.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ async def run(
5252
"Provided tool is not a tool type. If using an activity, make sure to wrap it with openai_agents.workflow.activity_as_tool."
5353
)
5454

55+
if starting_agent.mcp_servers:
56+
raise ValueError(
57+
"Temporal OpenAI agent does not support on demand MCP servers."
58+
)
59+
5560
context = kwargs.get("context")
5661
max_turns = kwargs.get("max_turns", DEFAULT_MAX_TURNS)
5762
hooks = kwargs.get("hooks")

0 commit comments

Comments
 (0)