MCPcopy Create free account

hub / github.com/AgentEvaluation/NHD / functions

Functions247 in github.com/AgentEvaluation/NHD

↓ 1 callersFunctionselectAllCases
()
src/app/tools/test-cases/page.tsx:107
↓ 1 callersFunctiontoggleSelectCase
(id: string)
src/components/tools/TestCaseVariations.tsx:173
↓ 1 callersFunctiontraverse
(current: any, currentPath: string[] = [])
src/components/tools/AgentResponse.tsx:118
↓ 1 callersMethodupdateScenarioEnabled
(scenarioId: string, enabled: boolean)
src/services/db/testService.ts:68
↓ 1 callersMethodupdateTestRun
(testRun: TestRun)
src/services/db/testRunService.ts:264
↓ 1 callersMethodupdateTestVariation
(variation: TestVariation)
src/services/db/testService.ts:50
↓ 1 callersMethodupdateValidationRules
(agentId: string, rules: Rule[])
src/services/db/agentConfigService.ts:257
↓ 1 callersFunctionuseAgentConfig
()
src/hooks/useAgentConfig.ts:19
↓ 1 callersFunctionuseAppError
()
src/hooks/useAppError.ts:28
↓ 1 callersFunctionuseTestExecution
()
src/hooks/useTestExecution.ts:10
↓ 1 callersFunctionuseTestRuns
()
src/hooks/useTestRuns.ts:5
↓ 1 callersFunctionuseTestVariations
(initialTestId?: string | undefined)
src/hooks/useTestVariations.ts:5
↓ 1 callersFunctionuseToast
()
src/hooks/use-toast.tsx:171
↓ 1 callersFunctionvalidateAnalyzeResultsRequest
(data: unknown)
src/lib/validations.ts:42
↓ 1 callersMethodvalidateCondition
(response: any, rules: Rule[])
src/services/agents/claude/validators.ts:30
↓ 1 callersFunctionvalidateEnv
()
src/lib/env-validation.ts:14
↓ 1 callersMethodvalidateResponseFormat
(response: any, outputFormat: any)
src/services/agents/claude/validators.ts:20
↓ 1 callersMethodvalidateStructure
(obj: any, template: any)
src/services/agents/claude/validators.ts:5
↓ 1 callersMethodvalidateWithMetrics
(conversation: string, scenario: string, expectedOutput: string, metrics: any[])
src/services/agents/claude/validationService.ts:8
↓ 1 callersFunctionwithErrorHandling
(handler: T)
src/lib/errors.ts:123
FunctionAgentConfigWizard
({ onComplete, initialConfig }: AgentConfigWizardProps = {})
src/components/tools/AgentConfigWizard.tsx:25
FunctionAgentDescription
({ agentDescription, userDescription, onAgentDescriptionChange, onUserDescriptionChange, }: AgentDescr
src/components/tools/agentDescription.tsx:17
FunctionAgentResponse
({ manualResponse, responseTime, rules, setRules }: Props)
src/components/tools/AgentResponse.tsx:17
FunctionAgentRules
({ manualResponse, rules, setRules, agentId }: AgentRulesProps)
src/components/tools/AgentRules.tsx:21
FunctionAgentSetup
({ agentEndpoint, setAgentEndpoint, headers, setHeaders, body, setBody }: Props)
src/components/tools/AgentSetup.tsx:25
FunctionApiKeyConfig
({ isOpen, setIsOpen }: ApiKeyConfigProps)
src/components/config/ApiKeyConfig.tsx:35
FunctionAppErrorHandler
({ children }: PropsWithChildren)
src/components/common/ErrorBoundary.tsx:125
FunctionBadge
({ className, variant, ...props }: BadgeProps)
src/components/ui/badge.tsx:30
FunctionChatDetail
({ chat, onBack }: ChatDetailProps)
src/components/tools/test-runs/ChatDetail.tsx:16
FunctionCollapsibleJson
({ content }: { content: string })
src/components/tools/test-runs/ConversationView.tsx:123
FunctionCollapsibleSection
({ title, children, defaultOpen = false, icon }: CollapsibleSectionProps)
src/components/tools/test-runs/CollapsibleSection.tsx:11
FunctionConversationAnalysis
({ validationResult }: ConversationAnalysisProps)
src/components/tools/test-runs/ConversationAnalysis.tsx:8
FunctionConversationView
({ chat }: ConversationViewProps)
src/components/tools/test-runs/ConversationView.tsx:13
FunctionDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
FunctionDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
FunctionDropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
src/components/ui/dropdown-menu.tsx:171
FunctionErrorDisplay
({ error, onDismiss, onRetry, className = '', showDismiss = true, showRetry = false, showIcon
src/components/common/ErrorDisplay.tsx:21
FunctionErrorProvider
({ children }: { children: ReactNode })
src/hooks/useErrorContext.ts:31
FunctionGlobalErrorListener
()
src/components/common/ErrorBoundary.tsx:92
FunctionIcon
()
src/components/common/ErrorDisplay.tsx:44
FunctionLoading
({ size = 'md', className, message }: LoadingProps)
src/components/common/Loading.tsx:10
FunctionLoadingSkeleton
()
src/components/tools/test-runs/RunsList.tsx:33
FunctionMetricsPanel
({ responseTime, isHallucination, messages }: MetricsPanelProps)
src/components/tools/metrics/MetricsPanel.tsx:15
FunctionMetricsView
({ metricResults, metricFilter, setMetricFilter }: MetricsViewProps)
src/components/tools/test-runs/MetricsView.tsx:29
FunctionPersonaSelector
({ selectedTest, enhanced = false }: PersonaSelectorProps)
src/components/tools/personaSelector.tsx:17
FunctionResponseTime
({ time }: ResponseTimeProps)
src/components/tools/ResponseTime.tsx:8
FunctionRootLayout
({ children, }: { children: React.ReactNode })
src/app/layout.tsx:10
FunctionRootPage
()
src/app/page.tsx:6
FunctionRunDetail
({ run, onBack, onSelectChat }: RunDetailProps)
src/components/tools/test-runs/RunDetail.tsx:17
FunctionRunsList
({ runs, onSelectRun, savedAgentConfigs, onExecuteTest, isLoading = false }: RunsListProps)
src/components/tools/test-runs/RunsList.tsx:86
FunctionRunsPage
()
src/app/tools/runs/page.tsx:6
FunctionScenarioFileUpload
({ selectedTestId, onFileProcessed, onClose })
src/components/tools/ScenarioFileUpload.tsx:25
FunctionSidebar
()
src/components/navigation/Sidebar.tsx:13
FunctionSkeletonLoader
()
src/app/tools/test-cases/page.tsx:26
FunctionTestCaseVariations
({ selectedTestId, enhanced = false, }: { selectedTestId: string | undefined; enhanced?: boolean; })
src/components/tools/TestCaseVariations.tsx:31
FunctionTestCasesPage
()
src/app/tools/test-cases/page.tsx:38
FunctionTestRunsDashboard
()
src/components/tools/test-runs/TestRunsDashboard.tsx:11
FunctionThemeProvider
({ children, ...props }: ThemeProviderProps)
src/app/providers.tsx:6
FunctionThemeToggle
()
src/components/ui/theme-toggler.tsx:9
FunctionToaster
()
src/components/ui/toaster.tsx:13
FunctionToolsLayout
({ children, }: { children: React.ReactNode })
src/app/tools/layout.tsx:5
FunctionToolsPage
()
src/app/tools/page.tsx:15
FunctionWarningDialog
({ isOpen, onClose, title = "LLM Keys not configured", message = "Please navigate to Settings and se
src/components/config/WarningDialog.tsx:21
FunctionaddHeader
()
src/components/tools/AgentSetup.tsx:29
FunctionaddNewTestCase
()
src/components/tools/TestCaseVariations.tsx:115
Methodcall
(input: string)
src/services/agents/types.ts:5
MethodcomponentDidCatch
(error: Error, errorInfo: React.ErrorInfo)
src/components/common/ErrorBoundary.tsx:32
Methodconstructor
(props: PropsWithChildren)
src/components/common/ErrorBoundary.tsx:20
Methodconstructor
(message: string, statusCode = 500, isOperational = true)
src/lib/errors.ts:12
Methodconstructor
(message: string)
src/lib/errors.ts:22
Methodconstructor
(message = 'Unauthorized access')
src/lib/errors.ts:29
Methodconstructor
(message = 'Access forbidden')
src/lib/errors.ts:36
Methodconstructor
(message = 'Resource not found')
src/lib/errors.ts:43
Methodconstructor
(message = 'Configuration error')
src/lib/errors.ts:50
Methodconstructor
(message: string, originalError?: any)
src/lib/errors.ts:59
Methodconstructor
(context?: ConversationContext)
src/lib/langchain/memory/conversationMemory.ts:9
Methodconstructor
(modelConfig: LLMServiceConfig, agentDescription: string)
src/services/metrics/hallucinationDetector.ts:48
Methodconstructor
(config: QaAgentConfig)
src/services/agents/claude/qaAgent.ts:33
Methodconstructor
(model: any, config: QaAgentConfig)
src/services/agents/claude/conversationProcessor.ts:16
Methodconstructor
(model: any)
src/services/agents/claude/validationService.ts:4
FunctioncreateConversationPrompt
(systemPrompt: string)
src/lib/langchain/prompts/conversation.ts:4
FunctioncreateErrorResponse
(error: unknown)
src/lib/api-utils.ts:64
MethodcreateMetric
()
src/services/db/metricsService.ts:37
MethodcreatePersona
(data: any)
src/services/db/personaService.ts:77
FunctioncreateSafeExecutor
(errorContext: ReturnType<typeof useErrorContext>)
src/utils/error-handlers.ts:65
FunctioncreateSuccessResponse
(data: T)
src/lib/api-utils.ts:54
FunctioncreateTestConversationPrompt
(context: ConversationContext)
src/lib/langchain/prompts/conversation.ts:12
FunctioncreateValidationPrompt
()
src/lib/langchain/prompts/conversation.ts:29
MethoddeleteMetric
()
src/services/db/metricsService.ts:45
MethoddeletePersona
(personaId: string)
src/services/db/personaService.ts:85
FunctiondownloadSample
()
src/components/tools/ScenarioFileUpload.tsx:41
MethodevaluateContinuation
* Evaluate if conversation should continue based on current progress * NOTE: This replaces the rigid conversation plan approach
src/services/agents/claude/conversationProcessor.ts:125
MethodextractTestMessage
* Extract the test message from model response * Handles both explicit TEST_MESSAGE format and regular responses
src/services/agents/claude/conversationHandler.ts:12
FunctionformatDuration
(ms: number)
src/lib/utils.ts:13
FunctionformatPercentage
(value: number)
src/lib/utils.ts:9
MethodgenerateNextMessage
* Generate the next message based on conversation history * Creates more adaptive and natural follow-ups
src/services/agents/claude/conversationProcessor.ts:176
FunctiongenerateSystemPromptForPersona
( persona: Persona, modelConfig: LLMServiceConfig )
src/services/persona/promptGenerator.ts:6
FunctiongenerateTestCases
()
src/components/tools/TestCaseVariations.tsx:79
MethodgetAgentConfigs
()
src/services/db/agentConfigService.ts:29
MethodgetDerivedStateFromError
(error: Error)
src/components/common/ErrorBoundary.tsx:25
← previousnext →101–200 of 247, ranked by callers