callback_CallGeneralAI

Description

This async function is called when a general AI request is completed and some response is returned.

Syntax

callback_CallGeneralAI(callId,  succeeded, responseMessage, creditsUsed)
ArgumentDescription

callId

The id of this call request. It was returned in CallGeneralAI. This is a number.

succeeded

Boolean that tells us if the request was successful or not.

responseMessage

The reply from the GPT AI model. This is a String.

creditsUsed

The number of RNet AI credits this request used. This is a number.

Returns

N/A

Example Implementation

function callback_CallGeneralAI(callId,  succeeded, responseMessage, creditsUsed){
	show_message("call id "+string(callId) +" was success? "+string(succeeded)+" "+ responseMessage)
}

Last updated