Package com.embabel.common.ai.prompt
Interface PromptContributor
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptElement
public interface PromptContributor implements PromptElement
Contributor to a prompt. Contributors may be put in a system message or elsewhere depending on location. Only the contribution() method must be implemented, but implementations are free to provide location and role data via overriding those properties.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPromptContributor.Companion
-
Method Summary
Modifier and Type Method Description PromptContributionpromptContribution()abstract Stringcontribution()Return the string content of the contribution. -
-
Method Detail
-
promptContribution
PromptContribution promptContribution()
-
contribution
abstract String contribution()
Return the string content of the contribution.
-
-
-
-