Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

386 B
Raw Blame
import { Operator } from '../constant';
import useGraphStore from '../store';

export function useIsMcp(operatorName: Operator) {
  const { clickedToolId, getAgentToolById } = useGraphStore();

  const { component_name: toolName } = getAgentToolById(clickedToolId) ?? {};

  return (
    operatorName === Operator.Tool &&
    Object.values(Operator).every((x) => x !== toolName)
  );
}