Create a complex chat historyv3.6+

Creates a detailed chat history by configuring the plugin to prepend and append multiple messages, allowing any user to continue the conversation.

Prerequisites

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: ai-prompt-decorator
    config:
      prompts:
        prepend:
        - role: system
          content: You are data scientist, specialising in survey analytics.
        - role: user
          content: Classify this test result set as positive, negative, or neutral.
        - role: assistant
          content: These tests are NEUTRAL.
        append:
        - role: user
          content: Do not mention any real participant names in your justification.
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!