Class DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig>
- java.lang.Object
-
- de.xima.fc.prompt.service.defaults.DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig>
-
- Type Parameters:
ConnectionConfig- The type of the connection configuration.QueryConfig- The type of the query configuration.
- Enclosing class:
- DefaultPromptExecutionParams
public static final class DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig> extends Object
Builder forDefaultPromptExecutionParams.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IPromptExecutionParams<ConnectionConfig,QueryConfig>build()Creates a new prompt execution parameters instance with the configured values.<NewConnectionConfig>
DefaultPromptExecutionParams.Builder<NewConnectionConfig,QueryConfig>connectionConfig(NewConnectionConfig connectionConfig)Sets the connection configuration of the query to be executed.DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig>context(IPromptExecutionContext context)Sets the execution context used during the prompt query execution.<NewQueryConfig>
DefaultPromptExecutionParams.Builder<ConnectionConfig,NewQueryConfig>queryConfig(NewQueryConfig queryConfig)Sets the query configuration of the query to be executed.DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig>requestObject(IPromptQueryRequestObject requestObject)Sets the request object with the parameters for the prompt query execution.
-
-
-
Method Detail
-
build
public IPromptExecutionParams<ConnectionConfig,QueryConfig> build()
Creates a new prompt execution parameters instance with the configured values.- Returns:
- A new prompt execution parameters instance.
-
connectionConfig
@CanIgnoreReturnValue public <NewConnectionConfig> DefaultPromptExecutionParams.Builder<NewConnectionConfig,QueryConfig> connectionConfig(NewConnectionConfig connectionConfig)
Sets the connection configuration of the query to be executed.- Type Parameters:
NewConnectionConfig- The type of the connection configuration.- Parameters:
connectionConfig- The connection configuration- Returns:
- This builder instance for chaining method calls.
-
context
public DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig> context(IPromptExecutionContext context)
Sets the execution context used during the prompt query execution.- Parameters:
context- The execution context- Returns:
- This builder instance for chaining method calls.
-
queryConfig
@CanIgnoreReturnValue public <NewQueryConfig> DefaultPromptExecutionParams.Builder<ConnectionConfig,NewQueryConfig> queryConfig(NewQueryConfig queryConfig)
Sets the query configuration of the query to be executed.- Type Parameters:
NewQueryConfig- The type of the new query configuration.- Parameters:
queryConfig- The query configuration- Returns:
- This builder instance for chaining method calls.
-
requestObject
@CanIgnoreReturnValue public DefaultPromptExecutionParams.Builder<ConnectionConfig,QueryConfig> requestObject(IPromptQueryRequestObject requestObject)
Sets the request object with the parameters for the prompt query execution.- Parameters:
requestObject- The request object- Returns:
- This builder instance for chaining method calls.
-
-