Package com.embabel.agent.api.common
Interface ContextualPromptElement
-
- All Implemented Interfaces:
-
com.embabel.common.ai.prompt.PromptElement
public interface ContextualPromptElement implements PromptElementMake a dynamic prompt contribution based on the operation context.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classContextualPromptElement.Companion
-
Method Summary
Modifier and Type Method Description PromptContributionpromptContribution(OperationContext context)Make a dynamic PromptContribution based on the operation context. abstract Stringcontribution(OperationContext context)PromptContributortoPromptContributor(OperationContext context)Make a static PromptContributor based on the operation context. -
-
Method Detail
-
promptContribution
PromptContribution promptContribution(OperationContext context)
Make a dynamic PromptContribution based on the operation context.
-
contribution
abstract String contribution(OperationContext context)
-
toPromptContributor
PromptContributor toPromptContributor(OperationContext context)
Make a static PromptContributor based on the operation context.
-
-
-
-