Class PromptConnectionData.Builder
java.lang.Object
de.xima.fc.prompt.mgmt.service.PromptConnectionData.Builder
- Enclosing class:
PromptConnectionData
Builder for prompt connection data instances.
- Since:
- 8.5.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the prompt connection data instance with the current data.description(String description) Sets the description of the prompt connection.Sets the name of the prompt connection.scope(PromptScope scope) Sets the scope (assignee) of the prompt connection.Sets the prompt service type of the prompt connection.Sets the UUID of the prompt connection.
-
Method Details
-
build
Builds the prompt connection data instance with the current data.- Returns:
- The new prompt connection data.
-
description
Sets the description of the prompt connection. The description should only be visible to backend users who configure the connection, but not to end users.- Parameters:
description- The description.- Returns:
- The builder.
-
name
Sets the name of the prompt connection. The name is unique with the scope to which the connection is assigned.- Parameters:
name- The name.- Returns:
- The builder.
-
scope
Sets the scope (assignee) of the prompt connection. Defines the scope to which the connection is assigned, e.g. the system or a tenant scope.- Parameters:
scope- The scope.- Returns:
- The builder.
-
type
Sets the prompt service type of the prompt connection. The type defines which prompt service is being used, e.g. "openai", "azure_openai", "anthropic", etc.- Parameters:
type- The type.- Returns:
- The builder.
-
uuid
Sets the UUID of the prompt connection. The UUID is unique only within the assigned scope.- Parameters:
uuid- The UUID.- Returns:
- The builder.
-