Package com.embabel.common.ai.prompt
Class KnowledgeCutoffDate
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptContributor,com.embabel.common.ai.prompt.PromptElement
public final class KnowledgeCutoffDate implements PromptContributor
Well-known prompt contributor for knowledge cutoff date. Valuable if the knowledge cutoff date is known. Added by Embabel agent platform.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringroleprivate final LocalDatedateprivate final PromptContributionLocationpromptContributionLocation
-
Constructor Summary
Constructors Constructor Description KnowledgeCutoffDate(LocalDate date, DateTimeFormatter formatter)
-
Method Summary
Modifier and Type Method Description StringgetRole()Role defaults to class simple name. final LocalDategetDate()Stringcontribution()Return the string content of the contribution. StringtoString()-
Methods inherited from class com.embabel.common.ai.prompt.PromptElement
getPromptContributionLocation -
Methods inherited from class com.embabel.common.ai.prompt.PromptContributor
promptContribution -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KnowledgeCutoffDate
KnowledgeCutoffDate(LocalDate date, DateTimeFormatter formatter)
-
-
-
-