Skip to content

Commit d66c62e

Browse files
committed
Auto-format
1 parent 5ab89bc commit d66c62e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

samples-v2/openai_agents/durable_ai_agent_context.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import json
22
from typing import Any, Callable, Optional
33

4-
from azure.durable_functions.models.DurableOrchestrationContext import DurableOrchestrationContext
4+
from azure.durable_functions.models.DurableOrchestrationContext import (
5+
DurableOrchestrationContext,
6+
)
57

68
from agents import RunContextWrapper, Tool
79
from agents.function_schema import function_schema
810
from agents.tool import FunctionTool
911
from yield_exception import YieldException
1012

13+
1114
class DurableAIAgentContext:
1215
def __init__(self, context: DurableOrchestrationContext):
1316
self._context = context
@@ -31,7 +34,7 @@ def _get_activity_call_result(self, activity_name, input: str):
3134
result_json = completed_tasks[self._activities_called - 1].Result
3235
result = json.loads(result_json)
3336
return result
34-
37+
3538
def call_activity(self, activity_name, input: str):
3639
task = self._context.call_activity(activity_name, input)
3740
self._activities_called += 1

0 commit comments

Comments
 (0)