Skip to content

Commit cc129e3

Browse files
author
Jicheng Lu
committed
clean code
1 parent 55fbc4f commit cc129e3

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/routes/page/agent/[agentId]/agent-tabs.svelte

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121
export function fetchTabData() {
2222
const llmConfig = agentLlmConfigCmp?.fetchLlmConfig();
2323
const utilities = agentUtilityCmp?.fetchUtilities();
24-
// const knwoledgebases = agentKnowledgeBaseCmp?.fetchKnowledgeBases();
2524
const rules = agentEventRuleCmp?.fetchRules();
2625
const mcpTools = agentMcpToolCmp?.fetchMcpTools();
2726
2827
return {
2928
llmConfig,
3029
utilities: utilities || [],
31-
// knwoledgebases: knwoledgebases || [],
3230
rules: rules || [],
3331
mcpTools: mcpTools || []
3432
};
@@ -50,7 +48,6 @@
5048
{ name: 'agent-llm-config', displayText: 'LLm Configs' },
5149
{ name: 'agent-routing-rule', displayText: 'Routing' },
5250
{ name: 'agent-utility', displayText: 'Utilities' },
53-
// { name: 'agent-knowledgebase', displayText: 'Knowledge Base' },
5451
{ name: 'agent-event-rule', displayText: 'Triggers & Rules' },
5552
{ name: 'agent-mcp-tool', displayText: 'MCP Tools' }
5653
]);
@@ -93,9 +90,6 @@
9390
<div class:hide={selectedTab !== 'agent-utility'}>
9491
<AgentUtility agent={agent} bind:this={agentUtilityCmp} {handleAgentChange} />
9592
</div>
96-
<!-- <div class:hide={selectedTab !== 'agent-knowledgebase'}>
97-
<AgentKnowledgeBase agent={agent} bind:this={agentKnowledgeBaseCmp} {handleAgentChange} />
98-
</div> -->
9993
<div class:hide={selectedTab !== 'agent-event-rule'}>
10094
<AgentEventRule agent={agent} bind:this={agentEventRuleCmp} {handleAgentChange} />
10195
</div>

0 commit comments

Comments
 (0)