Skip to content

Function: parseJudgeResponse()

ts
function parseJudgeResponse(
   probe, 
   rawResponse, 
   config): SemanticProbeResult;

Defined in: packages/core/src/introspection/SemanticProbe.ts:274

Parse the LLM judge's response into a structured result.

Handles malformed responses gracefully by falling back to conservative defaults.

Parameters

ParameterTypeDescription
probeSemanticProbeThe probe that was evaluated
rawResponsestringRaw LLM response text
configSemanticProbeConfigProbe configuration

Returns

SemanticProbeResult

Structured probe result