Interface SystemPromptPart
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A named slot in an
Agent's system prompt. Composed into the final prompt by ComposedAgent in the order its named-slot builder methods (e.g. ComposedAgent.Builder.preamble(SystemPromptPart), ComposedAgent.Builder.framing(SystemPromptPart)) declare. A part returning an empty or blank
string is skipped, so callers can short-circuit a slot by returning "" without disturbing
the surrounding ordering.-
Method Summary
-
Method Details
-
text
String text()- Returns:
- the text contributed by this part; never null. May be empty or blank to indicate the part should be skipped.
-