Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Add memory tab

Vasek Mlejnsky103a62f0a467
diff --git a/components/Editor/Sidebar/index.tsx b/components/Editor/Sidebar/index.tsx
index 0f9d9153e..8984e46b6 100644
--- a/components/Editor/Sidebar/index.tsx
+++ b/components/Editor/Sidebar/index.tsx
@@ -99,7 +99,7 @@ function Sidebar({
{activeMenuSection === MenuSection.Prompt &&
<Prompt />
}
- {activeMenuSection === MenuSection.Agent &&
+ {activeMenuSection === MenuSection.Run &&
<Agent
run={runAgent}
agentState={agentState}
diff --git a/components/Editor/SidebarMenu.tsx b/components/Editor/SidebarMenu.tsx
index 54314aa28..a24aaa0c3 100644
--- a/components/Editor/SidebarMenu.tsx
+++ b/components/Editor/SidebarMenu.tsx
@@ -1,11 +1,12 @@
import clsx from 'clsx'
-import { Code, Lock, Cpu, WholeWord, Server } from 'lucide-react'
+import { Code, Lock, Cpu, WholeWord, Server, Brain } from 'lucide-react'
export enum MenuSection {
- Agent = 'Agent',
- Envs = 'Envs',
+ Run = 'Run',
Model = 'Model',
Prompt = 'Prompt',
+ Memory = 'Memory',
+ Envs = 'Envs',
Deploy = 'Deploy',
}
@@ -13,14 +14,16 @@ const menuIconSize = '18px'
function getMenuSelectionIcon(selection: MenuSection) {
switch (selection) {
- case MenuSection.Agent:
+ case MenuSection.Run:
return <Code size={menuIconSize} />
case MenuSection.Prompt:
return <WholeWord size={menuIconSize} />
- case MenuSection.Envs:
- return <Lock size={menuIconSize} />
+ case MenuSection.Memory:
+ return <Brain size={menuIconSize} />
case MenuSection.Model:
return <Cpu size={menuIconSize} />
+ case MenuSection.Envs:
+ return <Lock size={menuIconSize} />
case MenuSection.Deploy:
return <Server size={menuIconSize} />
}
diff --git a/components/Editor/index.tsx b/components/Editor/index.tsx
index 2ffeb72b6..85baa5efc 100644
--- a/components/Editor/index.tsx
+++ b/components/Editor/index.tsx
@@ -86,7 +86,7 @@ function Editor({ project }: Props) {
const ref = useRef<HTMLDivElement | null>(null)
const [selectedMenuSection, setSelectedMenuSection] = useState(
- MenuSection.Agent,
+ MenuSection.Run,
)
const [sizes, setSizes] = useLocalStorage('project-board-splitter-sizes', [0, 100 / 3, 100 / 3])