Difference between revisions of "Bot Playground/AI/Conversation.configure"
From SmartBots Developers Docs
Line 11: | Line 11: | ||
{{API Variable Group|Input}} | {{API Variable Group|Input}} | ||
{{API Variable|options|yes}} configuration directives for the AI engine. Example: | {{API Variable|options|yes}} configuration directives for the AI engine. Example: | ||
− | < | + | <syntaxhighlight lang="json"> |
{ | { | ||
// Main configuration instructions for the AI: role, behavior, response rules etc. | // Main configuration instructions for the AI: role, behavior, response rules etc. | ||
Line 19: | Line 19: | ||
maxResponseTokens?: number; | maxResponseTokens?: number; | ||
} | } | ||
− | </ | + | </syntaxhighlight> |
{{API Variable Group|Output}} | {{API Variable Group|Output}} |
Revision as of 16:22, 10 October 2023
Sets some configuration values for the future usage
Conversation.configure(options)
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
options | yes | configuration directives for the AI engine. Example:
{
// Main configuration instructions for the AI: role, behavior, response rules etc.
instructions?: string;
// Maximum number of tokens to generate in response
maxResponseTokens?: number;
}
| |
Output: | |||
none |