File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
1
import azure .functions as func
2
-
3
- from agents import (
4
- ModelResponse ,
5
- )
6
-
2
+ from agents import ModelResponse
7
3
from agents .run import set_default_agent_runner
8
4
from durable_openai_runner import DurableOpenAIRunner
9
5
from yield_exception import YieldException
10
6
from activity_call_tracker import ActivityCallTracker
7
+ from model_invoker import ModelInvoker , ActivityModelInput
11
8
12
9
app = func .FunctionApp (http_auth_level = func .AuthLevel .FUNCTION )
13
10
@@ -39,9 +36,6 @@ def basic_hello_world_orchestrator(context):
39
36
40
37
@app .activity_trigger (input_name = "input" )
41
38
async def invoke_model_activity (input : str ):
42
- from model_invoker import ModelInvoker , ActivityModelInput
43
-
44
- # Deserialize input string into ActivityModelInput object
45
39
activity_input = ActivityModelInput .from_json (input )
46
40
47
41
model_invoker = ModelInvoker ()
You can’t perform that action at this time.
0 commit comments