Skip to content

Commit be9805c

Browse files
committed
Remove unnecessary imports
1 parent 8e886f8 commit be9805c

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

samples-v2/openai_agents/durable_openai_runner.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
import asyncio
21
import logging
3-
from typing import Any, Callable, Optional
2+
from typing import Any
43
from activity_call_tracker import ActivityCallTracker
5-
import azure.functions as func
6-
import azure.durable_functions as df
74

85
import json
9-
import typing
106
from dataclasses import replace
117
from typing import Any, Union
128

@@ -15,9 +11,7 @@
1511
RunConfig,
1612
RunResult,
1713
RunResultStreaming,
18-
SQLiteSession,
1914
TContext,
20-
Tool,
2115
TResponseInputItem,
2216
)
2317
from agents.run import DEFAULT_AGENT_RUNNER, DEFAULT_MAX_TURNS, AgentRunner

samples-v2/openai_agents/function_app.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
from typing import Any
21
import azure.functions as func
3-
import logging
42

53
from agents import (
6-
AgentOutputSchemaBase,
7-
CodeInterpreterTool,
8-
FileSearchTool,
9-
FunctionTool,
10-
Handoff,
11-
HostedMCPTool,
12-
ImageGenerationTool,
13-
ModelProvider,
144
ModelResponse,
15-
ModelSettings,
16-
ModelTracing,
17-
OpenAIProvider,
18-
RunContextWrapper,
19-
Tool,
20-
TResponseInputItem,
21-
UserError,
22-
WebSearchTool,
235
)
246

257
from agents.run import set_default_agent_runner
@@ -62,7 +44,6 @@ def basic_hello_world_orchestrator(context):
6244
@app.activity_trigger(input_name="input")
6345
async def invoke_model_activity(input: str):
6446
from _invoke_model_activity import ModelInvoker, ActivityModelInput
65-
from pydantic_core import to_json
6647

6748
# Deserialize input string into ActivityModelInput object
6849
activity_input = ActivityModelInput.from_json(input)

0 commit comments

Comments
 (0)