Skip to content

Config_Bot_Brains

Keith Sterling edited this page Feb 21, 2019 · 3 revisions

#Brain Selection

Each bot has the option to load one or more brains into itself and then the option to decide which brain to select to answer a question.

To use a single bot, name the bot, and then within the config file, there should be a config section of the same name which contains bot configuration as follows

console:
  bot:  bot
  
bot:
  brain: brain
  
brain: 
  # Brain configuration

If you want to load more then one brain then you list them using the Yaml bar '|' configuration, there should then be a brain configuration element in your config file for each brain listed as follows.

In this instance we have chosen to use the Round Robin Selector, but you can write your own, or use one of the other system defined classes

console:
  bot:  bot
  
bot:
  brain: |
    brain1
    brian2
  brain_selector: programy.clients.client.RoundRobinBrainSelector
  
brain1: 
  # Brain 1configuration
  
brain2:
  # Brain 2 configuration
                   
Clone this wiki locally