Interface: FunctionRefusal
@kortexya/reasoninglayer / FunctionRefusal
Interface: FunctionRefusal
Section titled “Interface: FunctionRefusal”Defined in: src/types/functions.ts:442
A function-lifecycle refusal, read out of the error a function call threw.
Remarks
Section titled “Remarks”Read by functionRefusalOf. code is the contract; the prose of message
is not.
Properties
Section titled “Properties”callers
Section titled “callers”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
Section titled “function”function:
string
Defined in: src/types/functions.ts:450
The function the refusal is about, by name.
message
Section titled “message”message:
string
Defined in: src/types/functions.ts:448
The refusal in words.
status
Section titled “status”status:
number
Defined in: src/types/functions.ts:444
HTTP status of the refusal.