Conversation.configure

From SmartBots Developers Docs
Bot PlaygroundAI
Revision as of 16:47, 12 September 2024 by NealB (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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