askAi
This function allows you to interact with the AI service.
Description
vcc.askAI(params)
This function allows you to interact with the AI service.
Parameters
systemMessage
(string) The system message to be sent to the AI service.
userMessage
(string) The user message to be sent to the AI service.
responseFormat
(object) Optional, it can describe the response format that you require
responseFormat object
type
(string) The type of the response format, e.g. json_schema
name
(string) The name of the response, e.g.”evaluation_results”
description
(string) Description for the format
schema
(object) The JSON schema, if this is selected
strict
(boolean) Indicates strict schema adherence
Return values
The response text from the AI service.
Example
vcc.askAI({systemMessage: "it's an email, rate the sender's mood (1-10, 10 is very angry) reply only with a number", userMessage: ctx.email.body});
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.