Class

ContradictionDetectorService

ContradictionDetectorService()

Contradiction Detector Service

Constructor

# new ContradictionDetectorService()

Constructor

View Source services/contradictionDetector.service.js, line 13

Classes

ContradictionDetectorService

Methods

# async detectContradiction(investigation) → {Promise.<IAssistantContradictionDetectionFormat>}

Detects contradictions between investigation fields.

Parameters:
Name Type Description
investigation ICreateInvestigationDto

The investigation in which to detect contradictions.

View Source services/contradictionDetector.service.js, line 28

  • A detected contradiction for the given investigation.
Promise.<IAssistantContradictionDetectionFormat>

# async getContradictionResolution(investigation, fieldNameopt) → {Promise.<IAssistantContradictionResolutionFormat>}

Gets the resolution of contradictions in an investigation by requesting the LLM.

Parameters:
Name Type Attributes Description
investigation IInvestigationResponseDto

The investigation in which to resolve contradictions.

fieldName string <optional>

The field name for which to resolve contradictions. If not provided, resolves all contradictions.

View Source services/contradictionDetector.service.js, line 94

  • The resolution of the contradiction.
Promise.<IAssistantContradictionResolutionFormat>

# async resolveContradiction(investigation, fieldNameopt) → {Promise.<string>}

Resolves contradictions in an investigation.

Parameters:
Name Type Attributes Description
investigation IInvestigation

The investigation in which to resolve contradictions.

fieldName string <optional>

The field name for which to resolve contradictions. If not provided, resolves all contradictions.

View Source services/contradictionDetector.service.js, line 168

  • A message describing the resolved contradictions.
Promise.<string>