We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1808abd commit a7598a4Copy full SHA for a7598a4
src/agents/tool_context.py
@@ -1,6 +1,6 @@
1
import asyncio
2
from dataclasses import dataclass, field, fields
3
-from typing import Any
+from typing import Any, Optional
4
5
from .run_context import RunContextWrapper, TContext
6
@@ -16,7 +16,7 @@ class ToolContext(RunContextWrapper[TContext]):
16
tool_call_id: str = field(default_factory=_assert_must_pass_tool_call_id)
17
"""The ID of the tool call."""
18
19
- _event_queue: asyncio.Queue[Any] | None = field(default=None, init=False, repr=False)
+ _event_queue: Optional[asyncio.Queue[Any]] = field(default=None, init=False, repr=False)
20
21
@classmethod
22
def from_agent_context(
0 commit comments