MCPcopy Create free account

hub / github.com/AgentEvaluation/NHD / functions

Functions247 in github.com/AgentEvaluation/NHD

↓ 77 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:5
↓ 19 callersFunctionwithApiHandler
(handler: ApiHandler<T>)
src/lib/api-utils.ts:25
↓ 17 callersMethodget
* Make a GET request
src/lib/api-client.ts:73
↓ 16 callersFunctionuseErrorContext
()
src/hooks/useErrorContext.ts:60
↓ 6 callersMethodcreateLangchainModel
(modelId: string, apiKey: string, extraParams: Record<string, any> = {})
src/services/llm/modelfactory.ts:8
↓ 6 callersMethodgetSelectedModelConfig
()
src/services/llm/modelfactory.ts:53
↓ 6 callersFunctionlogError
(error: unknown, context?: string)
src/lib/errors.ts:100
↓ 5 callersFunctiondispatch
(action: Action)
src/hooks/use-toast.tsx:133
↓ 5 callersMethodgetPersonaMappingByAgentId
(agentId: string)
src/services/db/personaMappingService.ts:4
↓ 5 callersMethodloadMemoryVariables
()
src/lib/langchain/memory/conversationMemory.ts:26
↓ 4 callersFunctiongetPersonaName
(personaId: string)
src/services/db/testRunService.ts:18
↓ 4 callersFunctionhandleErrorResponse
* Handles error responses from fetch calls
src/lib/api-client.ts:50
↓ 4 callersMethodsaveConversationMessage
(message: { id: string; conversationId: string; role: string; content: string
src/services/db/conversationService.ts:5
↓ 3 callersMethodclear
()
src/lib/langchain/memory/conversationMemory.ts:46
↓ 3 callersFunctiondeleteTestCases
(idsToDelete: string[])
src/components/tools/TestCaseVariations.tsx:189
↓ 3 callersMethodextractChatResponse
* Extract chat response from API response using rule configuration * Made more robust to handle different response structures
src/services/agents/claude/conversationHandler.ts:58
↓ 3 callersMethodformatConversationHistory
* Format conversation history into a string * Useful for prompts that need formatted history
src/services/agents/claude/conversationHandler.ts:138
↓ 3 callersFunctionformatErrorResponse
(error: unknown)
src/lib/errors.ts:73
↓ 3 callersMethodformatInput
(message: string, inputFormat: Record<string, any>)
src/services/agents/claude/apiHandler.ts:27
↓ 3 callersMethodgetAgentConfigAll
(id: string)
src/services/db/agentConfigService.ts:53
↓ 3 callersFunctionsafeValidateRequest
(schema: z.ZodSchema<T>, data: unknown)
src/lib/validations/api.ts:83
↓ 3 callersMethodsaveContext
( inputValues: { input: string }, outputValues: { output: string } )
src/lib/langchain/memory/conversationMemory.ts:36
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
src/hooks/use-toast.tsx:58
↓ 2 callersMethodcallEndpoint
( endpointUrl: string, headers: Record<string, string>, input: Record<string, any>, si
src/services/agents/claude/apiHandler.ts:2
↓ 2 callersMethodcreateTestVariation
(variation: TestVariation)
src/services/db/testService.ts:27
↓ 2 callersMethoddelete
* Make a DELETE request
src/lib/api-client.ts:153
↓ 2 callersMethodextractUserMessage
* Extract just the user message from the model output * Removes any control signals or formatting
src/services/agents/claude/qaAgent.ts:166
↓ 2 callersMethodgetTestVariations
(testId: string)
src/services/db/testService.ts:5
↓ 2 callersFunctiongetTimeColor
(ms: number)
src/components/tools/ResponseTime.tsx:9
↓ 2 callersMethodgetUserModelConfigs
()
src/services/llm/modelfactory.ts:36
↓ 2 callersFunctionhandlePersonaSelect
(personaId: string)
src/components/tools/personaSelector.tsx:64
↓ 2 callersMethodprocessTurn
(message: string, chatId: string)
src/services/agents/claude/qaAgent.ts:186
↓ 2 callersFunctionrenderJsonTree
(obj: any, path: string = '', level: number = 0, isInputSelection: boolean = false)
src/components/tools/AgentConfigWizard.tsx:127
↓ 2 callersMethodsafeJsonParse
(str: string)
src/services/db/agentConfigService.ts:224
↓ 2 callersMethodsaveAgentConfig
(config: { id?: string; name: string; endpoint: string; headers: Record<string, string>; a
src/services/db/agentConfigService.ts:100
↓ 2 callersFunctionstartEditing
(testCase: TestCase)
src/components/tools/TestCaseVariations.tsx:213
↓ 2 callersFunctionupdateHeader
(index: number, field: "key" | "value", value: string)
src/components/tools/AgentSetup.tsx:45
↓ 2 callersFunctionupdateRule
(index: number, updates: Partial<Rule>)
src/components/tools/AgentRules.tsx:39
↓ 2 callersMethodupdateTestConversationStatus
( conversationId: string, status: string, errorMessage?: string, validationResult?: { isCorr
src/services/db/testRunService.ts:281
↓ 2 callersFunctionvalidateAndProcessData
(data: any[])
src/components/tools/ScenarioFileUpload.tsx:124
↓ 2 callersMethodvalidateFullConversation
* Validate a conversation without running a new test * Used for evaluating existing conversations
src/services/agents/claude/qaAgent.ts:410
↓ 1 callersFunctionaddRule
(path = "")
src/components/tools/AgentRules.tsx:24
↓ 1 callersFunctionaddRun
(newRun: TestRun)
src/hooks/useTestRuns.ts:30
↓ 1 callersFunctioncheckRules
(response: any)
src/components/tools/AgentRules.tsx:45
↓ 1 callersFunctioncreateErrorFromResponse
* Creates a typed error based on HTTP status code
src/lib/api-client.ts:31
↓ 1 callersMethodcreatePersonaMapping
(agentId: string, personaId: string)
src/services/db/personaMappingService.ts:16
↓ 1 callersMethodcreateTestConversation
(data: { runId: string; scenarioId: string; personaId: string; status: string;
src/services/db/conversationService.ts:54
↓ 1 callersMethodcreateTestRun
(run: TestRun)
src/services/db/testRunService.ts:118
↓ 1 callersMethoddeleteAgentConfig
(configId: string)
src/services/db/agentConfigService.ts:233
↓ 1 callersMethoddeletePersonaMapping
(agentId: string, personaId: string)
src/services/db/personaMappingService.ts:48
↓ 1 callersMethoddeleteTestScenarios
(testId: string, scenarioIds: string[])
src/services/db/testService.ts:80
↓ 1 callersMethoddetectHallucination
( context: string, query: string, response: string )
src/services/metrics/hallucinationDetector.ts:57
↓ 1 callersFunctiondismiss
()
src/hooks/use-toast.tsx:150
↓ 1 callersFunctionexecuteTest
(testId: string)
src/hooks/useTestExecution.ts:41
↓ 1 callersFunctionextractJSON
(text: string)
src/app/api/tools/generate-tests/route.ts:10
↓ 1 callersFunctionfetchMapping
()
src/components/tools/personaSelector.tsx:50
↓ 1 callersFunctionfetchPersonas
()
src/components/tools/personaSelector.tsx:32
↓ 1 callersFunctionfetchSavedTests
()
src/app/tools/test-cases/page.tsx:77
↓ 1 callersFunctiongenId
()
src/hooks/use-toast.tsx:27
↓ 1 callersMethodgenerateInitialMessage
(scenario: string, expectedOutput: string)
src/services/agents/claude/qaAgent.ts:85
↓ 1 callersMethodgenerateNextMessage
* Generate subsequent messages for the conversation * Responds as a human user would to the AI's previous message
src/services/agents/claude/qaAgent.ts:120
↓ 1 callersMethodgetAllAgentConfigs
()
src/services/db/agentConfigService.ts:5
↓ 1 callersMethodgetAllTestRuns
(limit: number = 20, offset: number = 0)
src/services/db/testRunService.ts:23
↓ 1 callersFunctiongetConditionDisplayName
(condition: string)
src/components/tools/AgentRules.tsx:144
↓ 1 callersMethodgetConversationMessages
(conversationId: string)
src/services/db/conversationService.ts:78
↓ 1 callersFunctiongetCriticalityColor
(metricName: string)
src/components/tools/test-runs/MetricsView.tsx:64
↓ 1 callersFunctiongetIcon
()
src/components/config/WarningDialog.tsx:42
↓ 1 callersFunctiongetJsonPath
(obj: any, key: string, line: string)
src/components/tools/AgentResponse.tsx:115
↓ 1 callersMethodgetLLMHeaders
* Generate LLM model API headers
src/lib/api-client.ts:180
↓ 1 callersFunctiongetMetricIcon
(score: number)
src/components/tools/test-runs/MetricsView.tsx:56
↓ 1 callersMethodgetMetricsForAgent
(agentId: string)
src/services/db/metricsService.ts:32
↓ 1 callersMethodgetPersonaById
(personaId: string)
src/services/db/personaService.ts:72
↓ 1 callersMethodgetPersonas
()
src/services/db/personaService.ts:67
↓ 1 callersFunctiongetResponseTimeLevel
(time: number)
src/components/tools/metrics/MetricsPanel.tsx:26
↓ 1 callersFunctiongetStatusIcon
(status: string)
src/components/tools/test-runs/RunsList.tsx:96
↓ 1 callersFunctiongetStatusIcon
()
src/components/tools/test-runs/RunDetail.tsx:87
↓ 1 callersFunctiongetStatusVariant
(status: string)
src/components/tools/test-runs/RunsList.tsx:109
↓ 1 callersFunctiongetValueByPath
(obj: any, path: string)
src/components/tools/AgentRules.tsx:96
↓ 1 callersFunctiongetValueFromPath
(obj: any, path: string)
src/components/tools/AgentResponse.tsx:138
↓ 1 callersFunctiongetValueFromPath
(obj: any, path: string)
src/components/tools/AgentConfigWizard.tsx:71
↓ 1 callersFunctiongetVariant
()
src/components/common/ErrorDisplay.tsx:34
↓ 1 callersFunctionhandleCaseSelect
(test: AgentConfig)
src/app/tools/test-cases/page.tsx:95
↓ 1 callersFunctionhandleDeleteConfig
(id: string)
src/components/config/ApiKeyConfig.tsx:103
↓ 1 callersFunctionhandleError
(event: ErrorEvent)
src/components/common/ErrorBoundary.tsx:101
↓ 1 callersFunctionhandleLoadAgent
(agentId: string)
src/app/tools/page.tsx:25
↓ 1 callersFunctionhandleSelectModel
(modelId: string)
src/components/config/ApiKeyConfig.tsx:94
↓ 1 callersFunctionloadConfigs
()
src/hooks/useTestExecution.ts:23
↓ 1 callersMethodloadPersona
* Load persona information and update prompt accordingly * Called early in the test process to ensure persona integration
src/services/agents/claude/qaAgent.ts:66
↓ 1 callersFunctionloadRuns
(signal?: AbortSignal)
src/hooks/useTestRuns.ts:19
↓ 1 callersMethodpost
* Make a POST request
src/lib/api-client.ts:99
↓ 1 callersFunctionprocessCSV
(file: File)
src/components/tools/ScenarioFileUpload.tsx:78
↓ 1 callersFunctionprocessExcel
(file: File)
src/components/tools/ScenarioFileUpload.tsx:93
↓ 1 callersFunctionreducer
(state: State, action: Action)
src/hooks/use-toast.tsx:74
↓ 1 callersFunctionremoveHeader
(index: number)
src/components/tools/AgentSetup.tsx:37
↓ 1 callersFunctionremoveRule
(index: number)
src/components/tools/AgentRules.tsx:35
↓ 1 callersFunctionrenderObject
(obj: any, path = "")
src/components/tools/AgentRules.tsx:100
↓ 1 callersFunctionrenderStepContent
()
src/components/tools/AgentConfigWizard.tsx:175
↓ 1 callersFunctionresetForm
()
src/components/config/ApiKeyConfig.tsx:123
↓ 1 callersFunctionresetState
()
src/components/tools/ScenarioFileUpload.tsx:32
↓ 1 callersMethodrunTest
(scenario: string, expectedOutput: string)
src/services/agents/claude/qaAgent.ts:304
next →1–100 of 247, ranked by callers