If you haven’t already, please refer to the Template Overview page for an overview of Chat Templates.

Registering Templates using the SDK

To register a template, you can use the register_template or aregister_template method from the baserun module. This method takes two arguments:

  • template: A list of messages in the template
  • template_name: The name of the template