Enum ContextPosition
- All Implemented Interfaces:
Serializable, Comparable<ContextPosition>, java.lang.constant.Constable
Defines the possible locations where a
ContextProvider can inject its content
into the model's prompt.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe context is injected as a temporary, just-in-time user message at the end of the prompt.The context is injected as a permanent system instruction at the beginning of the chat. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextPositionReturns the enum constant of this type with the specified name.static ContextPosition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException- if the argument is null
-
