mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2026-02-27 04:04:23 +00:00
✨ 添加 MCP 返回结果日志记录功能,更新相关配置和文档,改善 MCP 结果返回
This commit is contained in:
@@ -195,6 +195,8 @@ class MarshoHandler:
|
||||
)
|
||||
else:
|
||||
func_return = await handle_mcp_tool(tool_name, function_args)
|
||||
if config.marshoai_enable_mcp_result_logging:
|
||||
logger.info(f"MCP工具 {tool_clean_name} 返回结果: {func_return}")
|
||||
tool_msg.append(
|
||||
ToolMessage(tool_call_id=tool_call.id, content=func_return).as_dict() # type: ignore
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user