Format Messages step

Introduction

The "Format Messages" step is designed to organize and format a list of messages to provide them as context to Make Chat Completion step.

Configuration

  • Messages: A required list parameter where each item is a message object. This list contains the messages to be formatted based on the authorship. You can retrieve previous messages using Get Message History step

  • Assistant: Specify the user (typically a bot or assistant) whose messages should be formatted as coming from the assistant. Messages from other authors will be considered user messages.

Outputs

  • Messages: A list of formatted message objects, each containing:

    • Role: Indicates whether the message is from the "assistant" or a "user", based on the configuration.

    • Content: The textual content of the message.

Last updated