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 { Operator } from '../../constant';
import { shouldUseCodeExecDebugLayout } from './utils';
describe('shouldUseCodeExecDebugLayout', () => {
it('returns true only for CodeExec nodes', () => {
expect(shouldUseCodeExecDebugLayout(Operator.Code)).toBe(true);
expect(shouldUseCodeExecDebugLayout(Operator.Retrieval)).toBe(false);
expect(shouldUseCodeExecDebugLayout(undefined)).toBe(false);
});
});