Skip to content

Commit caa52af

Browse files
committed
Fixup merge.
1 parent 53f4996 commit caa52af

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

azure/durable_functions/decorators/durable_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def generator_wrapper_wrapper(func):
303303
@wraps(func)
304304
def generator_wrapper(context):
305305
return durable_openai_agent_orchestrator_generator(
306-
func, context, model_retry_options activity_name
306+
func, context, model_retry_options, activity_name
307307
)
308308

309309
return generator_wrapper

azure/durable_functions/openai_agents/context.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ def __init__(
1919
context: DurableOrchestrationContext,
2020
task_tracker: TaskTracker,
2121
model_retry_options: Optional[RetryOptions],
22+
activity_name: str,
2223
):
2324
self._context = context
2425
self._task_tracker = task_tracker
2526
self._model_retry_options = model_retry_options
27+
self.activity_name = activity_name
2628

2729
def call_activity(self, activity_name, input: str):
2830
"""Call an activity function and record the activity call."""

azure/durable_functions/openai_agents/orchestrator_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def durable_openai_agent_orchestrator_generator(
3434
durable_ai_agent_context = DurableAIAgentContext(
3535
durable_orchestration_context, task_tracker, model_retry_options, activity_name
3636
)
37-
durable_openai_runner = DurableOpenAIRunner(context=durable_ai_agent_context)
37+
durable_openai_runner = DurableOpenAIRunner(
38+
context=durable_ai_agent_context, activity_name=activity_name)
3839
set_default_agent_runner(durable_openai_runner)
3940

4041
func_with_context = partial(func, durable_ai_agent_context)

0 commit comments

Comments
 (0)