Interface PromptTemplate

  • All Known Implementing Classes:
    HandlebarsPromptTemplate

    public interface PromptTemplate
    Represents a prompt template that can be rendered to a string.
    • Method Detail

      • renderAsync

        reactor.core.publisher.Mono<String> renderAsync​(Kernel kernel,
                                                        @Nullable
                                                        KernelFunctionArguments arguments,
                                                        @Nullable
                                                        InvocationContext context)
        Renders the template using the supplied Kernel, KernelFunctionArguments, and InvocationContext.
        Parameters:
        kernel - The Kernel containing services, plugins, and other state for use throughout the operation.
        arguments - The arguments to use to satisfy any input variables in the prompt template.
        context - The InvocationContext which carries optional information for the prompt rendering.
        Returns:
        The rendered prompt.