Skip to content

Commit 67c316d

Browse files
committed
chore(streaming): fix import ordering (ruff I001)
1 parent bfd81be commit 67c316d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/agentex/lib/core/services/adk/streaming.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3+
import json
34
import asyncio
45
import contextlib
5-
import json
6-
from typing import Awaitable, Callable, Literal
6+
from typing import Literal, Callable, Awaitable
77

88
from agentex import AsyncAgentex
99
from agentex.lib.utils.logging import make_logger

src/agentex/lib/core/temporal/plugins/openai_agents/models/temporal_streaming_model.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
import logging
66
from typing import Any, List, Union, Optional, override
77

8-
# Re-export the canonical StreamingMode literal from the streaming service so
9-
# all layers share a single definition.
10-
from agentex.lib.core.services.adk.streaming import StreamingMode as StreamingMode
11-
128
from agents import (
139
Tool,
1410
Model,
@@ -33,6 +29,10 @@
3329
)
3430
from agents.computer import Computer, AsyncComputer
3531

32+
# Re-export the canonical StreamingMode literal from the streaming service so
33+
# all layers share a single definition.
34+
from agentex.lib.core.services.adk.streaming import StreamingMode as StreamingMode
35+
3636
try:
3737
from agents.tool import ShellTool # type: ignore[attr-defined]
3838
except ImportError:

0 commit comments

Comments
 (0)