Skip to content

Commit 6388352

Browse files
author
SentienceDEV
committed
fix circular import
1 parent bb9be16 commit 6388352

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sentience/tools/defaults.py

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

33
from pydantic import BaseModel, Field
4+
from typing import TYPE_CHECKING
45

5-
from ..agent_runtime import AgentRuntime
6+
if TYPE_CHECKING:
7+
from ..agent_runtime import AgentRuntime
68
from ..backends import actions as backend_actions
79
from ..models import ActionResult, BBox, EvaluateJsRequest, Snapshot
810
from .context import ToolContext
@@ -53,7 +55,7 @@ class EvaluateJsToolInput(BaseModel):
5355

5456

5557
def register_default_tools(
56-
registry: ToolRegistry, runtime: ToolContext | AgentRuntime | None = None
58+
registry: ToolRegistry, runtime: ToolContext | "AgentRuntime" | None = None
5759
) -> ToolRegistry:
5860
"""Register default browser tools on a registry."""
5961

0 commit comments

Comments
 (0)