Interface AgenticSystemPromptCreator
-
- All Implemented Interfaces:
-
java.util.function.BiFunction
@FunctionalInterface() public interface AgenticSystemPromptCreator implements BiFunction<ExecutingOperationContext, String, String>
Creates a system prompt given the execution context and input.
This is a functional interface extending BiFunction for Java interoperability. The context provides access to the blackboard, process options, and other execution state. The input is the string passed to the agentic tool.
Example usage in Kotlin:
tool.withSystemPrompt { ctx, input -> "You are helping user ${ctx.processContext.processOptions.contextId}. Task: $input" }Example usage in Java:
tool.withSystemPrompt((ctx, input) -> "You are helping user " + ctx.getProcessContext().getProcessOptions().getContextId() );
-
-
Method Summary
Modifier and Type Method Description abstract Stringapply(ExecutingOperationContext context, String input)-
-
Method Detail
-
apply
abstract String apply(ExecutingOperationContext context, String input)
-
-
-
-