File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 1
- import asyncio
2
1
import logging
3
- from typing import Any , Callable , Optional
2
+ from typing import Any
4
3
from activity_call_tracker import ActivityCallTracker
5
- import azure .functions as func
6
- import azure .durable_functions as df
7
4
8
5
import json
9
- import typing
10
6
from dataclasses import replace
11
7
from typing import Any , Union
12
8
15
11
RunConfig ,
16
12
RunResult ,
17
13
RunResultStreaming ,
18
- SQLiteSession ,
19
14
TContext ,
20
- Tool ,
21
15
TResponseInputItem ,
22
16
)
23
17
from agents .run import DEFAULT_AGENT_RUNNER , DEFAULT_MAX_TURNS , AgentRunner
Original file line number Diff line number Diff line change 1
- from typing import Any
2
1
import azure .functions as func
3
- import logging
4
2
5
3
from agents import (
6
- AgentOutputSchemaBase ,
7
- CodeInterpreterTool ,
8
- FileSearchTool ,
9
- FunctionTool ,
10
- Handoff ,
11
- HostedMCPTool ,
12
- ImageGenerationTool ,
13
- ModelProvider ,
14
4
ModelResponse ,
15
- ModelSettings ,
16
- ModelTracing ,
17
- OpenAIProvider ,
18
- RunContextWrapper ,
19
- Tool ,
20
- TResponseInputItem ,
21
- UserError ,
22
- WebSearchTool ,
23
5
)
24
6
25
7
from agents .run import set_default_agent_runner
@@ -62,7 +44,6 @@ def basic_hello_world_orchestrator(context):
62
44
@app .activity_trigger (input_name = "input" )
63
45
async def invoke_model_activity (input : str ):
64
46
from _invoke_model_activity import ModelInvoker , ActivityModelInput
65
- from pydantic_core import to_json
66
47
67
48
# Deserialize input string into ActivityModelInput object
68
49
activity_input = ActivityModelInput .from_json (input )
You can’t perform that action at this time.
0 commit comments