Skip to content

Commit c04335c

Browse files
committed
refactor: 优化类型检查导入和代码格式,提升可读性
Change-Id: I2df17dbabb8bc6112342daf55bd8f7a7652fee6b Signed-off-by: OhYee <oyohyee@oyohyee.com>
1 parent a155f15 commit c04335c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

agentrun/integration/utils/tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
Set,
3636
Tuple,
3737
Type,
38+
TYPE_CHECKING,
3839
)
3940

4041
from pydantic import (
@@ -45,7 +46,9 @@
4546
ValidationError,
4647
)
4748

48-
from agentrun.toolset import ToolSet
49+
if TYPE_CHECKING:
50+
from agentrun.toolset import ToolSet
51+
4952
from agentrun.utils.log import logger
5053

5154
# Tool name constraints for external providers like OpenAI

agentrun/toolset/toolset.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
from agentrun.utils.log import logger
2323
from agentrun.utils.model import BaseModel
2424

25-
from .api.openapi import OpenAPI
2625
from .model import (
2726
MCPServerConfig,
2827
SchemaType,

0 commit comments

Comments
 (0)