Skip to content

Type Alias: FunctionBodyDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Functions / FunctionBodyDto

Type Alias: FunctionBodyDto

FunctionBodyDto = { type: "Value"; value: FunctionValueDto; } | { expr: ExpressionDto; type: "Expression"; } | { arguments: ExpressionDto[]; functionName: string; type: "FunctionCall"; }

Defined in: src/types/functions.ts:42

Function body — what a clause computes.

Remarks

Tagged union discriminated by type. Value returns a literal, Expression evaluates an arithmetic/logical expression, FunctionCall delegates to another function.