From 6de7bd0f6cdb7d7d69b94c161cc620173a316e97 Mon Sep 17 00:00:00 2001
From: Saumya
Date: Fri, 1 Aug 2025 13:04:24 +0530
Subject: [PATCH] fix agent builder update tool
---
.../agent_builder_tools/agent_config_tool.py | 5 ++-
.../sidebar/kortix-enterprise-modal.tsx | 41 -------------------
2 files changed, 3 insertions(+), 43 deletions(-)
diff --git a/backend/agent/tools/agent_builder_tools/agent_config_tool.py b/backend/agent/tools/agent_builder_tools/agent_config_tool.py
index 2dda4190..811f705b 100644
--- a/backend/agent/tools/agent_builder_tools/agent_config_tool.py
+++ b/backend/agent/tools/agent_builder_tools/agent_config_tool.py
@@ -95,6 +95,7 @@ class AgentConfigTool(AgentBuilderBaseTool):
avatar_color: Optional[str] = None
) -> ToolResult:
try:
+ account_id = await self._get_current_account_id()
client = await self.db.client
agent_result = await client.table('agents').select('*').eq('agent_id', self.agent_id).execute()
@@ -155,7 +156,7 @@ class AgentConfigTool(AgentBuilderBaseTool):
current_version_obj = await version_service.get_version(
agent_id=self.agent_id,
version_id=current_agent['current_version_id'],
- user_id=self.account_id
+ user_id=account_id
)
current_version = current_version_obj.to_dict()
except Exception as e:
@@ -224,7 +225,7 @@ class AgentConfigTool(AgentBuilderBaseTool):
new_version = await version_service.create_version(
agent_id=self.agent_id,
- user_id=self.account_id,
+ user_id=account_id,
system_prompt=current_system_prompt,
configured_mcps=current_configured_mcps,
custom_mcps=current_custom_mcps,
diff --git a/frontend/src/components/sidebar/kortix-enterprise-modal.tsx b/frontend/src/components/sidebar/kortix-enterprise-modal.tsx
index 12ec9649..f9c9c595 100644
--- a/frontend/src/components/sidebar/kortix-enterprise-modal.tsx
+++ b/frontend/src/components/sidebar/kortix-enterprise-modal.tsx
@@ -59,47 +59,6 @@ export function KortixProcessModal() {
employees data.
-
-
-
-
- 1
-
- Record
-
-
- We record what employees do to understand their workflows
- and tasks.
-
-
-
-
-
-
- 2
-
- Train
-
-
- AI is trained on the captured data to learn the tasks and
- decision-making.
-
-
-
-
-
-
- 3
-
- Automate
-
-
- AI agents automate tasks previously done by humans, with
- continuous learning and improvement.
-
-
-
-