Skip to content

Interface: FunctionRefusal

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FunctionRefusal

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

A function-lifecycle refusal, read out of the error a function call threw.

Read by functionRefusalOf. code is the contract; the prose of message is not.

callers: FunctionCaller[]

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

What calls the function (function_has_callers); empty otherwise.


code: FunctionRefusalCode

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

The stable code.


function: string

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

The function the refusal is about, by name.


message: string

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

The refusal in words.


status: number

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

HTTP status of the refusal.