Interface IPromptExecutionObjectGraphPlaceholderReplacer
-
public interface IPromptExecutionObjectGraphPlaceholderReplacerA replacer that replaces placeholders in an object graph of prompt models.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreplaceInConnectionConfiguration(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 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@Placeholderor@PromptTextParams. SeeobjectGraphPlaceholderReplacerfor 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@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.
-
-