Interface PromptMessage


public interface PromptMessage
A single message within a prompt.

A message consists of the message content, plus the role of the sender of the message.

  • Method Summary

    Modifier and Type
    Method
    Description
    The message content
    The message sender
  • Method Details

    • role

      Role role()
      The message sender
      Returns:
      the role of the message sender
    • content

      ContentBlock content()
      The message content
      Returns:
      the message content