proposit-core
    Preparing search index...

    Interface TArgumentEvaluationContext

    Read-only interface providing the data an evaluation needs from an argument engine. This is intentionally narrow — evaluation should not mutate anything.

    interface TArgumentEvaluationContext {
        argumentId: string;
        conclusionPremiseId: string | undefined;
        getConclusionPremise(): TEvaluablePremise | undefined;
        getPremise(premiseId: string): TEvaluablePremise | undefined;
        getVariable(
            variableId: string,
        ):
            | {
                argumentId: string;
                argumentVersion: number;
                checksum: string;
                claimId: string;
                claimVersion: number;
                id: string;
                symbol: string;
            }
            | {
                argumentId: string;
                argumentVersion: number;
                boundArgumentId: string;
                boundArgumentVersion: number;
                boundPremiseId: string;
                checksum: string;
                id: string;
                symbol: string;
            }
            | undefined;
        listPremises(): TEvaluablePremise[];
        listSupportingPremises(): TEvaluablePremise[];
        validateEvaluability(): TCoreValidationResult;
    }
    Index

    Properties

    argumentId: string

    The argument's own ID.

    conclusionPremiseId: string | undefined

    The conclusion premise ID, if set.

    Methods

    • Look up a variable by ID.

      Parameters

      • variableId: string

      Returns
          | {
              argumentId: string;
              argumentVersion: number;
              checksum: string;
              claimId: string;
              claimVersion: number;
              id: string;
              symbol: string;
          }
          | {
              argumentId: string;
              argumentVersion: number;
              boundArgumentId: string;
              boundArgumentVersion: number;
              boundPremiseId: string;
              checksum: string;
              id: string;
              symbol: string;
          }
          | undefined