fix(tool): 修复部分情况下工具调用异常中断的问题

This commit is contained in:
Wenjie Zhang 2026-03-06 10:14:05 +08:00
parent c4beda2ef1
commit 1130cabe57

View File

@ -43,7 +43,7 @@ def tool(
name_or_callable: str | Callable | None = None,
description: str | None = None,
args_schema: type | None = None,
return_direct: bool = True,
return_direct: bool = False,
):
"""基于 langchain.tool 的拓展装饰器,同时注册元数据