Interface IPromptExecutionObjectGraphPlaceholderReplacer
public interface IPromptExecutionObjectGraphPlaceholderReplacer
A replacer that replaces placeholders in an object graph of prompt models.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidreplaceInConnectionConfiguration(Object connectionConfig) Walks the object graph of the given (deserialized) connection configuration and replaces all placeholders in all string fields annotated with@Placeholderor@PromptTextParams.voidreplaceInQueryConfiguration(Object queryConfig, Object connectionConfig) Walks the object graph of the given (deserialized) query configuration and replaces all placeholders in all string fields annotated with@Placeholderor@PromptTextParams.
-
Method Details
-
replaceInConnectionConfiguration
Walks the object graph of the given (deserialized) connection configuration and replaces all placeholders in all string fields annotated with@Placeholderor@PromptTextParams. SeeobjectGraphPlaceholderReplacerfor further details.- Parameters:
connectionConfig- The connection configuration to process. May be null, in which case this method does nothing.
-
replaceInQueryConfiguration
Walks the object graph of the given (deserialized) query configuration and replaces all placeholders in all string fields annotated with@Placeholderor@PromptTextParams. SeeobjectGraphPlaceholderReplacerfor 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.
-