@salesforce/agents
    Preparing search index...

    Function parseConversationScorerResponse

    • Reads a scorer's outcome from its JSON-string scorerResponse. Task Resolution puts the fields either at the top level or under content; both are read. Values are passed through as sent (for example score may be an integer or a decimal).

      Expects a scorerResponse that's already decoded, as returned by runEphemeral or normalizeConversationTestResults. It isn't decoded again, so literal entity text in the reasoning (for example ") is kept.

      Parameters

      • OptionalscorerResponse: string

      Returns ConversationScorerOutcome | undefined

      The outcome, or undefined when the response is missing or isn't a JSON object.