Browse Source

fix agent_execution_metadata (#15444)

tags/1.0.1
heyszt 7 months ago
parent
commit
a58b990855
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      api/core/workflow/nodes/tool/tool_node.py

+ 3
- 1
api/core/workflow/nodes/tool/tool_node.py View File

@@ -270,7 +270,9 @@ class ToolNode(BaseNode[ToolNodeData]):
if self.node_type == NodeType.AGENT:
msg_metadata = message.message.json_object.pop("execution_metadata", {})
agent_execution_metadata = {
key: value for key, value in msg_metadata.items() if key in NodeRunMetadataKey
key: value
for key, value in msg_metadata.items()
if key in NodeRunMetadataKey.__members__.values()
}
json.append(message.message.json_object)
elif message.type == ToolInvokeMessage.MessageType.LINK:

Loading…
Cancel
Save