Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add support for summary.txt log file

Vasek Mlejnsky018ca4bb4fb0
diff --git a/components/AgentLogFileContent.tsx b/components/AgentLogFileContent.tsx
index dc9fd377f..416f9d172 100644
--- a/components/AgentLogFileContent.tsx
+++ b/components/AgentLogFileContent.tsx
@@ -65,7 +65,7 @@ function AgentLogFileContent({
<AgentNextActionLogDetail
log={logFile.content as AgentNextActionLog}
/>
- ) : logFile.filename.includes('user_input') ? (
+ ) : logFile.filename.includes('user_input.txt') || logFile.filename.includes('summary.txt') ? (
<div className="overflow-auto p-2 mr-2.5 mb-2.5 h-full bg-[#1F2437] rounded-md flex flex-col space-y-4 w-full border border-gray-800">
<div className="flex flex-col space-y-1 w-full">
<span className="text-sm font-medium text-gray-500">User Input</span>
diff --git a/pages/index.tsx b/pages/index.tsx
index ab55df46f..3ca1c3aa2 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -28,7 +28,10 @@ function formatLogFileContent(logFile: Omit<log_files, 'project_id' | 'type' | '
// This parsing is very Ssecific to the AutoGPT format.
const filename = logFile.filename
- if (filename.includes('user_input')) {
+ console.log('filename', filename)
+ if (filename.includes('user_input.txt')
+ || filename.includes('summary.txt')
+ ) {
return {
...logFile,
relativePath,