Skip to content

Interface: FunctionRefusal

@kortexya/reasoninglayer


@kortexya/reasoninglayer / FunctionRefusal

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

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:460

What calls the function (function_has_callers); empty otherwise.


code: FunctionRefusalCode

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

The stable code.


function: string

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

The function the refusal is about, by name.


message: string

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

The refusal in words.


status: number

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

HTTP status of the refusal.