Make queries to a specific chatbot / library
streaming
attribute.
streaming
is false, the response will be a JSON object containing the following fields
streaming
is true, the response is sent as a series of chunks where each of them will be a JSON object.
All chunks includes a type
param the describes how the rest of the JSON will look like
type == initializing
type == token
value
attribute the will include the current token sent.
type == response
data
attribute the will include the final response and the metadata.