Interface PromptTemplate.ReferenceBuilder

Enclosing class:
PromptTemplate
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface PromptTemplate.ReferenceBuilder
Intermediate object to build a template reference.
  • Method Details

    • byId

      @Nonnull default PromptTemplate.ReferenceBuilder3 byId(@Nonnull String id)
      Build a template reference with the given id for tenant scope.
      Parameters:
      id - the id of the template.
      Returns:
      a template reference with the given id.
    • byScenario

      @Nonnull PromptTemplate.ReferenceBuilder1 byScenario(@Nonnull String scenario)
      Build a template reference with the given scenario, name, and version.
      Parameters:
      scenario - the scenario of the template.
      Returns:
      an intermediate object to build the template reference.