Interface IPromptExecutionObjectGraphPlaceholderReplacer


  • public interface IPromptExecutionObjectGraphPlaceholderReplacer
    A replacer that replaces placeholders in an object graph of prompt models.
    Since:
    8.5.0
    • Method Detail

      • replaceInConnectionConfiguration

        void replaceInConnectionConfiguration​(Object connectionConfig)
        Walks the object graph of the given (deserialized) connection configuration and replaces all placeholders in all string fields annotated with @Placeholder or @PromptTextParams. See objectGraphPlaceholderReplacer for further details.
        Parameters:
        connectionConfig - The connection configuration to process. May be null, in which case this method does nothing.
      • replaceInQueryConfiguration

        void replaceInQueryConfiguration​(Object queryConfig,
                                         Object connectionConfig)
        Walks the object graph of the given (deserialized) query configuration and replaces all placeholders in all string fields annotated with @Placeholder or @PromptTextParams. See objectGraphPlaceholderReplacer for further details.
        Parameters:
        queryConfig - The query configuration to process. May be null, in which case this method does nothing.
        connectionConfig - The configuration of the connection selected for the query.