Skip to content

Interface: RegisterFunctionRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RegisterFunctionRequest

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

Request to register a user-defined function.

No tenant field: the function goes to the tenant of the client’s X-Tenant-Id header. The engine refuses a body tenant_id that differs from the header (function_tenant_mismatch), so the SDK never sends one.

A FunctionDraftDto is this same type, so a complete draft passes straight to FunctionsClient.registerFunction.

arity: number

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

Number of parameters the function accepts.


clauses: FunctionClauseDto[]

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

Ordered list of clauses defining the function.


name: string

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

Function name.