question()
Last updated 24/09/2024
The
question()
is a function on the Five
object that is sent via the Five server to get a result back from the OpenAI platform. After the OpenAI
has completed its answer to the question, the onResultsCallBack will be called with the provided answer.Refer to the chapter Setup OpenAI to know how to save your OpenAI Key in Five.
AvailableClient
Function Signature
question(question: string, onResultsCallBack: (reply: string) => void) : string
Parameter | Type | Description |
---|---|---|
question | string | The question to ask |
onResultsCallBack | function | Function that returns the reply to the question |