RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
import { memo } from 'react';
import useGraphStore from '../../store';
import { ToolFormConfigMap } from './constant';
import MCPForm from './mcp-form';
const EmptyContent = () => <div></div>;
function ToolForm() {
const clickedToolId = useGraphStore((state) => state.clickedToolId);
const { getAgentToolById } = useGraphStore();
const tool = getAgentToolById(clickedToolId);
const ToolForm =
ToolFormConfigMap[tool?.component_name as keyof typeof ToolFormConfigMap] ??
MCPForm ??
EmptyContent;
return (
<section>
<ToolForm key={clickedToolId}></ToolForm>
</section>
);
}
export default memo(ToolForm);