Interface DecisionInput

All Known Implementing Classes:
ConversationInput, FieldsInput, TextInput

public sealed interface DecisionInput permits TextInput, FieldsInput, ConversationInput
The input a decision model decides about: a text or other content, a set of named fields, or a conversation.
Since:
2.1.0
Author:
Thomas Vitale, Christian Tzolov
  • Method Details

    • text

      static TextInput text(String text)
      A text input.
    • content

      static TextInput content(List<? extends MessagePart> parts)
      An input made of ordered content parts, such as a TextPart followed by the MediaParts of the images it refers to.
    • content

      static TextInput content(MessagePart... parts)
      An input made of ordered content parts, such as a TextPart followed by the MediaParts of the images it refers to.
    • fields

      static FieldsInput fields(Map<String,@Nullable Object> fields)
      A structured input made of named fields. Values can be strings, numbers, booleans, nulls, maps, lists, or, at the top level, a MessagePart or a list of them.
    • conversation

      static ConversationInput conversation(List<? extends Message> messages)
      A conversation input, such as the one a chat model is about to answer or has just answered.