Skip to content

Commit abfcaf4

Browse files
committed
♻️ Front-end model configuration, knowledge base related constants and types are placed in specific files
1 parent dce2ad8 commit abfcaf4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

frontend/app/[locale]/setup/agentSetup/components/agent/AgentCallRelationshipModal.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,11 @@ import Tree from "react-d3-tree";
99
import {
1010
AgentCallRelationship,
1111
AgentCallRelationshipSubAgent,
12-
AgentCallRelationshipTool,
1312
AgentCallRelationshipModalProps,
14-
AgentCallRelationshipTreeNodeDatum,
15-
AGENT_CALL_RELATIONSHIP_THEME_CONFIG,
13+
AgentCallRelationshipTreeNodeDatum
1614
} from "@/types/agentConfig";
1715

18-
import { AGENT_CALL_RELATIONSHIP_NODE_SIZE, AGENT_CALL_RELATIONSHIP_THEME, AGENT_CALL_RELATIONSHIP_NODE_TYPES, AGENT_CALL_RELATIONSHIP_ORIENTATION, AgentCallRelationshipOrientation } from "@/const/agentConfig";
19-
import { fetchAgentCallRelationship } from "@/services/agentConfigService";
16+
import {AGENT_CALL_RELATIONSHIP_THEME_CONFIG, AGENT_CALL_RELATIONSHIP_NODE_TYPES, AGENT_CALL_RELATIONSHIP_ORIENTATION, AgentCallRelationshipOrientation } from "@/const/agentConfig";
2017

2118
const { Text } = Typography;
2219

frontend/const/agentConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import type { LayoutConfig } from "../types/agentConfig";
44

55
// Agent call relationship graph theme/colors
6-
export const AGENT_CALL_RELATIONSHIP_THEME = {
6+
export const AGENT_CALL_RELATIONSHIP_THEME_CONFIG = {
77
colors: {
88
node: {
99
main: "#2c3e50",

0 commit comments

Comments
 (0)