Skip to content

Commit fbb17a9

Browse files
committed
refactor(tracing): remove dead TemporalTracing wrapper models
The wrappers never implemented abstract stream_response, so TemporalTracingModelProvider.get_model() raised TypeError on every call since introduction; no working callers can exist. The streaming provider plus run.py hooks are the live tracing path.
1 parent bfb3fc9 commit fbb17a9

5 files changed

Lines changed: 4 additions & 514 deletions

File tree

src/agentex/lib/core/temporal/plugins/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
Example:
1212
>>> from agentex.lib.core.temporal.plugins.openai_agents import (
1313
... TemporalStreamingModelProvider,
14-
... TemporalTracingModelProvider,
1514
... ContextInterceptor,
1615
... )
1716
>>> from temporalio.contrib.openai_agents import OpenAIAgentsPlugin, ModelActivityParameters
@@ -37,7 +36,6 @@
3736
ContextInterceptor,
3837
TemporalStreamingHooks,
3938
TemporalStreamingModel,
40-
TemporalTracingModelProvider,
4139
TemporalStreamingModelProvider,
4240
streaming_task_id,
4341
streaming_trace_id,
@@ -48,7 +46,6 @@
4846
__all__ = [
4947
"TemporalStreamingModel",
5048
"TemporalStreamingModelProvider",
51-
"TemporalTracingModelProvider",
5249
"ContextInterceptor",
5350
"streaming_task_id",
5451
"streaming_trace_id",

src/agentex/lib/core/temporal/plugins/openai_agents/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
from agentex.lib.core.temporal.plugins.openai_agents.hooks.activities import (
6262
stream_lifecycle_content,
6363
)
64-
from agentex.lib.core.temporal.plugins.openai_agents.models.temporal_tracing_model import (
65-
TemporalTracingModelProvider,
66-
)
6764
from agentex.lib.core.temporal.plugins.openai_agents.models.temporal_streaming_model import (
6865
TemporalStreamingModel,
6966
TemporalStreamingModelProvider,
@@ -78,7 +75,6 @@
7875
__all__ = [
7976
"TemporalStreamingModel",
8077
"TemporalStreamingModelProvider",
81-
"TemporalTracingModelProvider",
8278
"ContextInterceptor",
8379
"streaming_task_id",
8480
"streaming_trace_id",

src/agentex/lib/core/temporal/plugins/openai_agents/models/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44
capabilities to standard OpenAI models when running in Temporal workflows/activities.
55
"""
66

7-
from agentex.lib.core.temporal.plugins.openai_agents.models.temporal_tracing_model import (
8-
TemporalTracingModelProvider,
9-
TemporalTracingResponsesModel,
10-
TemporalTracingChatCompletionsModel,
11-
)
127
from agentex.lib.core.temporal.plugins.openai_agents.models.temporal_streaming_model import (
138
TemporalStreamingModel,
149
TemporalStreamingModelProvider,
@@ -17,7 +12,4 @@
1712
__all__ = [
1813
"TemporalStreamingModel",
1914
"TemporalStreamingModelProvider",
20-
"TemporalTracingModelProvider",
21-
"TemporalTracingResponsesModel",
22-
"TemporalTracingChatCompletionsModel",
2315
]

0 commit comments

Comments
 (0)