fix: fully fix indentation and formatting, editorconfig-checker 100% passed

pull/21944/head
baonudesifeizhai 11 months ago
parent ba81199c79
commit 0378f96f7a

@ -103,7 +103,7 @@ class AgentNode(ToolNode):
try:
# convert tool messages
agent_thoughts = []
agent_thoughts: list = []
from core.tools.entities.tool_entities import ToolInvokeMessage

@ -371,7 +371,7 @@ class ToolNode(BaseNode[ToolNodeData]):
yield agent_log
# Add agent_logs to outputs['json'] to ensure frontend can access thinking process
json_output = json.copy()
json_output: dict[str, Any] | list[dict[str, Any]] = json.copy()
if agent_logs:
if not json_output:
json_output = {}
@ -387,6 +387,7 @@ class ToolNode(BaseNode[ToolNodeData]):
json_output = {"data": json_output}
# Add agent_logs to json output
if isinstance(json_output, dict):
json_output["agent_logs"] = [
{
"id": log.id,

Loading…
Cancel
Save