-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy path__init__.py
More file actions
123 lines (120 loc) · 3.86 KB
/
Copy path__init__.py
File metadata and controls
123 lines (120 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Tencent is pleased to support the open source community by making tRPC-Agent-Python available.
#
# Copyright (C) 2026 Tencent. All rights reserved.
#
# tRPC-Agent-Python is licensed under Apache-2.0.
"""Tools module for TRPC Agent framework."""
from trpc_agent_sdk.abc import ToolPredicate
from trpc_agent_sdk.abc import ToolSetABC as BaseToolSet
from ._agent_tool import AGENT_TOOL_APP_NAME_SUFFIX
from ._agent_tool import AgentTool
from ._base_tool import BaseTool
from ._constants import TOOL_NAME
from ._context_var import get_tool_var
from ._context_var import reset_tool_var
from ._context_var import set_tool_var
from ._default_toolset import DefaultToolSet
from ._function_tool import FunctionTool
from ._load_memory_tool import LoadMemoryResponse
from ._load_memory_tool import LoadMemoryTool
from ._load_memory_tool import load_memory
from ._load_memory_tool import load_memory_tool
from ._long_running_tool import LongRunningFunctionTool
from ._preload_memory_tool import PreloadMemoryTool
from ._preload_memory_tool import preload_memory_tool
from ._registry import ToolRegistry
from ._registry import ToolSetRegistry
from ._registry import ToolType
from ._registry import get_tool
from ._registry import get_tool_set
from ._registry import register_tool
from ._registry import register_tool_set
from ._set_model_response_tool import SetModelResponseTool
from ._streaming_function_tool import StreamingFunctionTool
from ._tool_adapter import convert_toolunion_to_tool_list
from ._tool_adapter import create_tool
from ._tool_adapter import create_toolset
from ._transfer_to_agent_tool import transfer_to_agent
from ._webfetch_tool import FetchResult
from ._webfetch_tool import WebFetchTool
from ._websearch_tool import SearchHit
from ._websearch_tool import WebSearchResult
from ._websearch_tool import WebSearchTool
from .file_tools import BashTool
from .file_tools import EditTool
from .file_tools import FileToolSet
from .file_tools import GlobTool
from .file_tools import GrepTool
from .file_tools import ReadTool
from .file_tools import WriteTool
from .mcp_tool import MCPTool
from .mcp_tool import MCPToolset
from .mcp_tool import McpConnectionParamsType
from .mcp_tool import McpStdioServerParameters
from .mcp_tool import SseConnectionParams
from .mcp_tool import StdioConnectionParams
from .mcp_tool import StreamableHTTPConnectionParams
from .mcp_tool import patch_mcp_cancel_scope_exit_issue
from .utils import build_function_declaration
from .utils import from_function_with_options
from .utils import get_required_fields
from .utils import parse_schema_from_parameter
from .utils import register_checker
__all__ = [
"ToolPredicate",
"BaseToolSet",
"AGENT_TOOL_APP_NAME_SUFFIX",
"AgentTool",
"BaseTool",
"get_tool_var",
"reset_tool_var",
"set_tool_var",
"DefaultToolSet",
"FunctionTool",
"LoadMemoryResponse",
"LoadMemoryTool",
"load_memory",
"load_memory_tool",
"LongRunningFunctionTool",
"PreloadMemoryTool",
"preload_memory_tool",
"ToolRegistry",
"ToolSetRegistry",
"ToolType",
"TOOL_NAME",
"get_tool",
"get_tool_set",
"register_tool",
"register_tool_set",
"SetModelResponseTool",
"StreamingFunctionTool",
"convert_toolunion_to_tool_list",
"create_tool",
"create_toolset",
"transfer_to_agent",
"FetchResult",
"WebFetchTool",
"SearchHit",
"WebSearchResult",
"WebSearchTool",
"BashTool",
"EditTool",
"FileToolSet",
"GlobTool",
"GrepTool",
"ReadTool",
"WriteTool",
"MCPTool",
"MCPToolset",
"McpConnectionParamsType",
"McpStdioServerParameters",
"SseConnectionParams",
"StdioConnectionParams",
"StreamableHTTPConnectionParams",
"patch_mcp_cancel_scope_exit_issue",
"build_function_declaration",
"from_function_with_options",
"get_required_fields",
"parse_schema_from_parameter",
"register_checker",
]