Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Filter out actions without tool attribute when parsing tool logs

Tomas Valentaa4b5b0f11579
diff --git a/api-service/codegen/callbacks/log_parser.py b/api-service/codegen/callbacks/log_parser.py
index 4cea05a54..c84668373 100644
--- a/api-service/codegen/callbacks/log_parser.py
+++ b/api-service/codegen/callbacks/log_parser.py
@@ -78,6 +78,7 @@ class LogStreamParser:
"tool_input": action.text or "",
}
for action in parse_action_string(action_string)
+ if action.attrib.get("tool", False)
]
# Update tools' logs with the information from ingested tools' outputs.