Enum ContextPosition

java.lang.Object
java.lang.Enum<ContextPosition>
uno.anahata.ai.context.provider.ContextPosition
All Implemented Interfaces:
Serializable, Comparable<ContextPosition>, java.lang.constant.Constable

public enum ContextPosition extends Enum<ContextPosition>
Defines the possible locations where a ContextProvider can inject its content into the model's prompt.
  • Enum Constant Details

    • SYSTEM_INSTRUCTIONS

      public static final ContextPosition SYSTEM_INSTRUCTIONS
      The context is injected as a permanent system instruction at the beginning of the chat. This context should be concise and is typically text-only.
    • AUGMENTED_WORKSPACE

      public static final ContextPosition AUGMENTED_WORKSPACE
      The context is injected as a temporary, just-in-time user message at the end of the prompt. This makes the information highly salient for the model's next turn and is not saved in the permanent chat history. This position supports rich content like images and JSON.
  • Method Details

    • values

      public static ContextPosition[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ContextPosition valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null