Skip to content

Commit afeaaa5

Browse files
authored
Merge branch 'main' into openai/mcp
2 parents f3acf3f + e1016bc commit afeaaa5

File tree

4 files changed

+91
-560
lines changed

4 files changed

+91
-560
lines changed

temporalio/contrib/openai_agents/_temporal_openai_agents.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ def set_open_ai_agent_temporal_overrides(
8686
8787
Returns:
8888
A context manager that yields the configured TemporalTraceProvider.
89-
9089
"""
91-
if model_params is None:
92-
model_params = ModelActivityParameters()
93-
9490
previous_runner = get_default_agent_runner()
9591
previous_trace_provider = get_trace_provider()
9692
provider = TemporalTraceProvider(

temporalio/nexus/_decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ async def _start(
120120
)
121121

122122
_start.__doc__ = start.__doc__
123-
return WorkflowRunOperationHandler(_start, input_type, output_type)
123+
return WorkflowRunOperationHandler(_start)
124124

125125
method_name = get_callable_name(start)
126126
nexusrpc.set_operation_definition(

temporalio/nexus/_operation_handlers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Any,
55
Awaitable,
66
Callable,
7-
Optional,
8-
Type,
97
)
108

119
from nexusrpc import (
@@ -50,8 +48,6 @@ def __init__(
5048
[StartOperationContext, InputT],
5149
Awaitable[WorkflowHandle[OutputT]],
5250
],
53-
input_type: Optional[Type[InputT]],
54-
output_type: Optional[Type[OutputT]],
5551
) -> None:
5652
"""Initialize the workflow run operation handler."""
5753
if not is_async_callable(start):
@@ -64,8 +60,6 @@ def __init__(
6460
if start.__doc__:
6561
if start_func := getattr(self.start, "__func__", None):
6662
start_func.__doc__ = start.__doc__
67-
self._input_type = input_type
68-
self._output_type = output_type
6963

7064
async def start(
7165
self, ctx: StartOperationContext, input: InputT

0 commit comments

Comments
 (0)