Class TextInput

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

public final class TextInput extends Object implements DecisionInput
A DecisionInput made of ordered content parts: typically a text, optionally followed by media such as images. The parts are the same MessagePart types a chat message carries, so content prepared for a UserMessage can be judged as it is.
Since:
2.1.0
Author:
Thomas Vitale, Christian Tzolov
  • Method Details

    • getText

      public String getText()
      The text of the input: its TextParts joined, or an empty string when it has none.
    • getParts

      public List<MessagePart> getParts()
      The ordered content parts of the input.
    • 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