Codeunit "AOAI Function Response"

ID 7758
Namespace: System.AI

The status and result of an functions.

Properties

Name Value
Access Public
InherentEntitlements X
InherentPermissions X

Methods

IsSuccess

Get whether the function call was successful.

procedure IsSuccess(): Boolean

Returns

Type Description
Boolean

True if the call was successful, false otherwise.

GetStatus

Gets the function response status.

procedure GetStatus(): Enum "AOAI Function Response Status"

Returns

Type Description
System.AI."AOAI Function Response Status"

The function response status

GetResult

Get the return value of the function that was called.

procedure GetResult(): Variant

Returns

Type Description
Variant

The return value from the function

GetArguments

Get the arguments for the function call.

procedure GetArguments(): JsonObject

Returns

Type Description
JsonObject

The arguments for the function

GetError

Get the error message from the function that was called.

procedure GetError(): Text

Returns

Type Description
Text

The error message from the function.

GetFunctionName

Get the name of the function that was called.

procedure GetFunctionName(): Text

Returns

Type Description
Text

The name of the function that was called.

GetFunctionId

Get the id of the function that was called.

procedure GetFunctionId(): Text

Returns

Type Description
Text

GetErrorCallstack

Get the error call stack from the function that was called.

procedure GetErrorCallstack(): Text

Returns

Type Description
Text

The error call stack from the function.

See also