Type Alias: EvaluateFunctionResponse
@kortexya/reasoninglayer / Functions / EvaluateFunctionResponse
Type Alias: EvaluateFunctionResponse
EvaluateFunctionResponse = {
resultType:"Value";value:FunctionValueDto; } | {degree:number;resultType:"FuzzyValue";value:FunctionValueDto; } | {resultType:"Abstain";score:number;threshold:number; } | {reason:string;resultType:"Suspend"; }
Defined in: src/types/functions.ts:173
Response from function evaluation.
Remarks
Tagged union discriminated by resultType (wire: result_type):
Value— evaluation succeeded crisply and produced a concrete value.FuzzyValue— evaluation succeeded through a fuzzy clause;valuecarries the result anddegreeits membership degree in[0, 1].Abstain— the evaluator declined to commit: the best clausescorefell belowthreshold, so no value is returned.Suspend— evaluation was suspended (residuation on missing data);reasonexplains why.