Skip to content

Commit 60f360e

Browse files
committed
Fix imports
1 parent 598ab94 commit 60f360e

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
import azure.functions as func
2-
3-
from agents import (
4-
ModelResponse,
5-
)
6-
2+
from agents import ModelResponse
73
from agents.run import set_default_agent_runner
84
from durable_openai_runner import DurableOpenAIRunner
95
from yield_exception import YieldException
106
from activity_call_tracker import ActivityCallTracker
7+
from model_invoker import ModelInvoker, ActivityModelInput
118

129
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
1310

@@ -39,9 +36,6 @@ def basic_hello_world_orchestrator(context):
3936

4037
@app.activity_trigger(input_name="input")
4138
async def invoke_model_activity(input: str):
42-
from model_invoker import ModelInvoker, ActivityModelInput
43-
44-
# Deserialize input string into ActivityModelInput object
4539
activity_input = ActivityModelInput.from_json(input)
4640

4741
model_invoker = ModelInvoker()

0 commit comments

Comments
 (0)