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()
    );
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String apply(ExecutingOperationContext context, String input)
      • Methods inherited from class java.util.function.BiFunction

        andThen
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait