Difference between revisions of "Bot Playground/AI/Conversation.configure"
From SmartBots Developers Docs
| Line 27: | Line 27: | ||
{{API Variable|none}} | {{API Variable|none}} | ||
{{API Variables Table End}} | {{API Variables Table End}} | ||
| + | |||
| + | |||
| + | <blockquote> | ||
| + | *Note: The `instructions` and `maxResponseTokens` settings are hard-coded in user settings. They do not need to be explicitly created for user settings. Instead, these values should be fetched from `userSettings.instructions` and `userSettings.maxResponseTokens` and included in the configuration. | ||
| + | </blockquote> | ||
{{NavMenu}} | {{NavMenu}} | ||
Latest revision as of 11:16, 22 January 2025
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;
// The amount of history to retain for the conversation.
maxHistoryMessages?: number;
}
| |
| Output: | |||
| none | |||
- Note: The `instructions` and `maxResponseTokens` settings are hard-coded in user settings. They do not need to be explicitly created for user settings. Instead, these values should be fetched from `userSettings.instructions` and `userSettings.maxResponseTokens` and included in the configuration.