From a2ec392024e3ae93694971527ca318fb5690625e Mon Sep 17 00:00:00 2001 From: Declan Brady Date: Fri, 30 Oct 2026 11:34:28 -0400 Subject: [PATCH] fix(deps): cap temporalio below 1.35 temporalio 1.35 moves the OpenAI Agents integration into the temporalio-openai-agents package, which needs openai-agents 0.20 or later. The SDK imports temporalio.contrib.openai_agents unconditionally, so Temporal workers crash at startup on 1.35. Cap the SDK, the OpenAI Agents init template, and the affected tutorials at <1.35, as in the staging repo. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018gtTYcnigSuJ6qquhhDzxg --- adk/pyproject.toml | 2 +- examples/demos/procurement_agent/pyproject.toml | 2 +- .../060_open_ai_agents_sdk_hello_world/pyproject.toml | 2 +- .../10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml | 2 +- .../080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml | 2 +- .../10_temporal/090_claude_agents_sdk_mvp/pyproject.toml | 2 +- .../10_async/10_temporal/100_gemini_litellm/pyproject.toml | 2 +- .../cli/templates/temporal-openai-agents/pyproject.toml.j2 | 2 +- .../templates/temporal-openai-agents/requirements.txt.j2 | 2 +- uv.lock | 6 +++--- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/adk/pyproject.toml b/adk/pyproject.toml index 0d7bce18b..458da5103 100644 --- a/adk/pyproject.toml +++ b/adk/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "uvicorn>=0.31.1", "aiohttp>=3.10.10,<4", # Temporal workflows - "temporalio>=1.26.0,<2", + "temporalio>=1.26.0,<1.35", "cloudpickle>=3.1.1", # Async streaming infra "redis>=5.2.0,<8", diff --git a/examples/demos/procurement_agent/pyproject.toml b/examples/demos/procurement_agent/pyproject.toml index 555819a5d..3ebb33d94 100644 --- a/examples/demos/procurement_agent/pyproject.toml +++ b/examples/demos/procurement_agent/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.5", "openai-agents>=0.4.2", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "scale-gp", "aiosqlite", "pytest-html>=4.2.0", diff --git a/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml b/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml index 28cfa2f1d..6ac7b15f1 100644 --- a/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/060_open_ai_agents_sdk_hello_world/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.0", "openai-agents>=0.4.2", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "scale-gp", ] diff --git a/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml b/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml index 343d4e01a..d73970401 100644 --- a/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/070_open_ai_agents_sdk_tools/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.0", "openai-agents>=0.4.2", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "scale-gp", ] diff --git a/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml b/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml index 5f4c7fbe7..6c19938bd 100644 --- a/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/080_open_ai_agents_sdk_human_in_the_loop/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.0", "openai-agents>=0.4.2", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "scale-gp", ] diff --git a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml index 23213dfd0..8f7e29361 100644 --- a/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/090_claude_agents_sdk_mvp/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.0", "claude-agent-sdk>=0.1.0", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "anthropic>=0.40.0", ] diff --git a/examples/tutorials/10_async/10_temporal/100_gemini_litellm/pyproject.toml b/examples/tutorials/10_async/10_temporal/100_gemini_litellm/pyproject.toml index 9f0098e0b..82d7ddd32 100644 --- a/examples/tutorials/10_async/10_temporal/100_gemini_litellm/pyproject.toml +++ b/examples/tutorials/10_async/10_temporal/100_gemini_litellm/pyproject.toml @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk>=0.6.0", "openai-agents>=0.4.2", - "temporalio>=1.18.2", + "temporalio>=1.26.0,<1.35", "scale-gp", "litellm>=1.52.0", ] diff --git a/src/agentex/lib/cli/templates/temporal-openai-agents/pyproject.toml.j2 b/src/agentex/lib/cli/templates/temporal-openai-agents/pyproject.toml.j2 index a1ebab933..3344fc687 100644 --- a/src/agentex/lib/cli/templates/temporal-openai-agents/pyproject.toml.j2 +++ b/src/agentex/lib/cli/templates/temporal-openai-agents/pyproject.toml.j2 @@ -10,7 +10,7 @@ requires-python = ">=3.12" dependencies = [ "agentex-sdk", "scale-gp", - "temporalio", + "temporalio>=1.26.0,<1.35", "openai-agents>=0.4.2", ] diff --git a/src/agentex/lib/cli/templates/temporal-openai-agents/requirements.txt.j2 b/src/agentex/lib/cli/templates/temporal-openai-agents/requirements.txt.j2 index d4bd7a0fa..ff64fb550 100644 --- a/src/agentex/lib/cli/templates/temporal-openai-agents/requirements.txt.j2 +++ b/src/agentex/lib/cli/templates/temporal-openai-agents/requirements.txt.j2 @@ -1,4 +1,4 @@ agentex-sdk scale-gp -temporalio +temporalio>=1.26.0,<1.35 openai-agents>=0.4.2 diff --git a/uv.lock b/uv.lock index 6c79c4ace..b78d910c3 100644 --- a/uv.lock +++ b/uv.lock @@ -15,7 +15,7 @@ members = [ [[package]] name = "agentex-client" -version = "0.21.0" +version = "0.28.4" source = { editable = "." } dependencies = [ { name = "anyio" }, @@ -91,7 +91,7 @@ dev = [ [[package]] name = "agentex-sdk" -version = "0.21.0" +version = "0.28.4" source = { editable = "adk" } dependencies = [ { name = "agentex-client" }, @@ -157,7 +157,7 @@ requires-dist = [ { name = "scale-gp", specifier = ">=0.1.0a59" }, { name = "scale-gp-beta", specifier = ">=0.5.0" }, { name = "starlette", specifier = ">=0.49.1" }, - { name = "temporalio", specifier = ">=1.26.0,<2" }, + { name = "temporalio", specifier = ">=1.26.0,<1.35" }, { name = "typer", specifier = ">=0.16,<0.17" }, { name = "uvicorn", specifier = ">=0.31.1" }, { name = "watchfiles", specifier = ">=0.24.0,<1.0" },