callback_CallSimpleAI

Description

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

Syntax

callback_CallSimpleAI(callId, threadId,  succeeded, responseMessage, creditsUsed)

Returns

N/A

Example Implementation

function callback_CallSimpleAI(callId, threadId,  succeeded, responseMessage, creditsUsed){
	show_message("call id "+string(callId) +" of thread id "+string(threadId)+" was success? "+string(succeeded)+" "+ responseMessage)
	//save the thread id and use it in the next call if you want to continue this conversation.
}

Last updated