Ver código fonte

fix agent_execution_metadata (#15444)

tags/1.0.1
heyszt 7 meses atrás
pai
commit
a58b990855
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      api/core/workflow/nodes/tool/tool_node.py

+ 3
- 1
api/core/workflow/nodes/tool/tool_node.py Ver arquivo

@@ -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:

Carregando…
Cancelar
Salvar