File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
agents-core/vision_agents/core/agents Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import asyncio
22import contextvars
3+ import typing
34
4- from vision_agents .core .agents import Agent
5+ if typing .TYPE_CHECKING :
6+ from .agents import Agent
57
68
79class AgentSessionContextManager :
@@ -27,7 +29,7 @@ class AgentSessionContextManager:
2729 returned by the edge transport (kept open during the context).
2830 """
2931
30- def __init__ (self , agent : Agent , connection_cm = None ):
32+ def __init__ (self , agent : " Agent" , connection_cm = None ):
3133 self .agent = agent
3234 self ._connection_cm = connection_cm
3335
Original file line number Diff line number Diff line change 6060from opentelemetry import trace , context as otel_context
6161from opentelemetry .trace import Tracer
6262from opentelemetry .context import Token
63+ from .agent_session import AgentSessionContextManager
6364
6465if TYPE_CHECKING :
6566 from vision_agents .plugins .getstream .stream_edge_transport import StreamEdge
6667
67- from .agent_session import AgentSessionContextManager
68-
6968logger = logging .getLogger (__name__ )
7069
7170tracer : Tracer = trace .get_tracer ("agents" )
@@ -539,7 +538,6 @@ async def join(
539538 await self .edge .publish_tracks (audio_track , video_track )
540539
541540
542- from .agent_session import AgentSessionContextManager
543541
544542 # wait for conversation creation coro at the very end of the join flow
545543 self .conversation = await create_conversation_coro
You can’t perform that action at this time.
0 commit comments