Package com.embabel.common.ai.prompt
Class PromptContribution
-
- All Implemented Interfaces:
public final class PromptContributionContribution to a prompt
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKNOWLEDGE_CUTOFF_ROLEpublic final static StringCURRENT_DATE_ROLEprivate final Stringcontentprivate final PromptContributionLocationlocationprivate final Stringrole
-
Constructor Summary
Constructors Constructor Description PromptContribution(String content, PromptContributionLocation location, String role)
-
Method Summary
Modifier and Type Method Description final StringgetContent()final PromptContributionLocationgetLocation()final StringgetRole()-
-
Constructor Detail
-
PromptContribution
PromptContribution(String content, PromptContributionLocation location, String role)
- Parameters:
content- The content of the contributionlocation- Where in the prompt this should gorole- The role of the contribution, if known.
-
-
Method Detail
-
getContent
final String getContent()
-
getLocation
final PromptContributionLocation getLocation()
-
-
-
-