We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb9be16 commit 6388352Copy full SHA for 6388352
sentience/tools/defaults.py
@@ -1,8 +1,10 @@
1
from __future__ import annotations
2
3
from pydantic import BaseModel, Field
4
+from typing import TYPE_CHECKING
5
-from ..agent_runtime import AgentRuntime
6
+if TYPE_CHECKING:
7
+ from ..agent_runtime import AgentRuntime
8
from ..backends import actions as backend_actions
9
from ..models import ActionResult, BBox, EvaluateJsRequest, Snapshot
10
from .context import ToolContext
@@ -53,7 +55,7 @@ class EvaluateJsToolInput(BaseModel):
53
55
54
56
57
def register_default_tools(
- registry: ToolRegistry, runtime: ToolContext | AgentRuntime | None = None
58
+ registry: ToolRegistry, runtime: ToolContext | "AgentRuntime" | None = None
59
) -> ToolRegistry:
60
"""Register default browser tools on a registry."""
61
0 commit comments