Class ConversationInput

java.lang.Object
org.springframework.ai.decision.input.ConversationInput
All Implemented Interfaces:
DecisionInput

public final class ConversationInput extends Object implements DecisionInput
A DecisionInput made of a conversation, such as the one a chat model is about to answer or has just answered. The messages are the same Message types a chat model takes.
Since:
2.1.0
Author:
Thomas Vitale
  • Method Details

    • getMessages

      public List<Message> getMessages()
    • parts

      public static List<MessagePart> parts(Message message)
      The parts of a message, in order, for a provider to map. A message that does not keep parts has its text as a single text part, or no part when it has no text.
      Parameters:
      message - the message
      Returns:
      the parts of the message
      Since:
      2.1.0
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object