Skip to content

Commit 03fadf7

Browse files
scale-ballenclaude
andcommitted
fix: replace fastacp uuid import with stdlib import in tutorial tests
Four tutorial test files imported `uuid` via: from agentex.lib.sdk.fastacp.base.base_acp_server import uuid This triggered the full fastacp import chain at test collection time: fastacp → types.fastacp → core.clients.temporal.utils → temporalio.contrib.openai_agents → opentelemetry.sdk The test runner installs agentex-sdk from PyPI (not the built wheel), so the published version's temporalio lacks the [opentelemetry] extra, causing ModuleNotFoundError at test collection time. Fix: use `import uuid` from the standard library directly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a816bfd commit 03fadf7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/tutorials/00_sync/010_multiturn/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"""
1818

1919
import os
20+
import uuid
2021

2122
import pytest
2223
from test_utils.sync import validate_text_in_string, collect_streaming_response
2324

2425
from agentex import Agentex
2526
from agentex.types import TextContent, TextContentParam
2627
from agentex.types.agent_rpc_params import ParamsCreateTaskRequest, ParamsSendMessageRequest
27-
from agentex.lib.sdk.fastacp.base.base_acp_server import uuid
2828

2929
# Configuration from environment variables
3030
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")

examples/tutorials/00_sync/020_streaming/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
"""
1818

1919
import os
20+
import uuid
2021

2122
import pytest
2223
from test_utils.sync import validate_text_in_string, collect_streaming_response
2324

2425
from agentex import Agentex
2526
from agentex.types import TextContent, TextContentParam
2627
from agentex.types.agent_rpc_params import ParamsCreateTaskRequest, ParamsSendMessageRequest
27-
from agentex.lib.sdk.fastacp.base.base_acp_server import uuid
2828

2929
# Configuration from environment variables
3030
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")

examples/tutorials/00_sync/030_langgraph/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"""
1717

1818
import os
19+
import uuid
1920

2021
import pytest
2122
from test_utils.sync import validate_text_in_string, collect_streaming_response
2223

2324
from agentex import Agentex
2425
from agentex.types import TextContent, TextContentParam
2526
from agentex.types.agent_rpc_params import ParamsCreateTaskRequest, ParamsSendMessageRequest
26-
from agentex.lib.sdk.fastacp.base.base_acp_server import uuid
2727

2828
# Configuration from environment variables
2929
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")

examples/tutorials/10_async/00_base/100_langgraph/tests/test_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
"""
1717

1818
import os
19+
import uuid
1920

2021
import pytest
2122
import pytest_asyncio
2223

2324
from agentex import AsyncAgentex
2425
from agentex.types import TextContentParam
2526
from agentex.types.agent_rpc_params import ParamsCreateTaskRequest
26-
from agentex.lib.sdk.fastacp.base.base_acp_server import uuid
2727

2828
# Configuration from environment variables
2929
AGENTEX_API_BASE_URL = os.environ.get("AGENTEX_API_BASE_URL", "http://localhost:5003")

0 commit comments

Comments
 (0)