🐛 添加调试日志以记录工具调用及其参数

This commit is contained in:
FuQuan233 2026-06-01 14:54:22 +08:00
parent a857dbf6c2
commit 802265ca22

View file

@ -480,6 +480,8 @@ async def process_messages(context_id: int, is_group: bool = True):
new_messages.append(llm_reply)
for tool_call in message.tool_calls:
logger.debug(f"处理工具调用:{tool_call.function.name} 参数:{tool_call.function.arguments}")
tool_name = tool_call.function.name
try:
tool_args = json.loads(tool_call.function.arguments)