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 0f616f5 commit c869ca0Copy full SHA for c869ca0
template_langgraph/tools/common.py
@@ -9,6 +9,7 @@
9
from template_langgraph.tools.sql_database_tool import SqlDatabaseClientWrapper
10
11
logger = get_logger(__name__)
12
+mcp_tools = McpClientWrapper().get_tools()
13
14
15
def get_default_tools():
@@ -23,16 +24,12 @@ def get_default_tools():
23
24
+ SqlDatabaseClientWrapper().get_tools(
25
llm=AzureOpenAiWrapper().chat_model,
26
)
- + McpClientWrapper().get_tools()
27
+ + mcp_tools
28
29
30
31
def is_async_call_required(tool_name: str) -> bool:
- # FIXME: adhoc impl
32
- if tool_name.startswith("browser_"):
33
- return True
+ mcp_tool_names = [tool.name for tool in mcp_tools]
34
return tool_name in [
35
- "echo",
36
- "add",
37
- # add async tool names here
+ *mcp_tool_names,
38
]
0 commit comments