Class PromptConnectionData
java.lang.Object
de.xima.fc.prompt.mgmt.service.PromptConnectionData
- All Implemented Interfaces:
Serializable
Represents a prompt connection, i.e. the configuration needed to establish a connection to a prompt service. We
support different prompt services, e.g. OpenAI, Azure OpenAI, Anthropic. Each prompt service is identified by its
type(), and each type corresponds to a IPromptServiceHandler implementation which knows how to
handle connections of that type.- Since:
- 8.5.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for prompt connection data instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic PromptConnectionData.Builderbuilder()Creates a new builder for a prompt connection data instance.static PromptConnectionData.Builderbuilder(PromptConnectionData data) Creates a new builder pre-configured with the data of this connection.Gets the internal description of the prompt connection.name()Gets the name of the prompt connection.scope()Gets the scope (assignee) of the prompt connection.type()Gets the prompt service type of the prompt connection.uuid()Gets the UUID of the prompt connection.
-
Method Details
-
description
Gets the internal description of the prompt connection. The description should only be visible to backend users who configure the connection, but not to end users.- Returns:
- The description of the prompt connection.
-
name
Gets the name of the prompt connection. The name is unique with the scope to which the connection is assigned.- Returns:
- The name of the prompt connection.
-
scope
Gets the scope (assignee) of the prompt connection. Defines the scope to which the connection is assigned, e.g. the system or a tenant scope.- Returns:
- The scope.
-
type
Gets the prompt service type of the prompt connection. The type defines which prompt service is being used, e.g. "openai", "azure_openai", "anthropic", etc.- Returns:
- The type of the prompt connection.
-
uuid
Gets the UUID of the prompt connection. The UUID is unique only within the assigned scope.- Returns:
- The UUID of the prompt connection.
-
builder
Creates a new builder for a prompt connection data instance. -
builder
Creates a new builder pre-configured with the data of this connection.- Returns:
- A new builder.
-