Package de.xima.fc.prompt.mgmt.service
Class PromptConnectionData
- java.lang.Object
-
- de.xima.fc.prompt.mgmt.service.PromptConnectionData
-
- All Implemented Interfaces:
Serializable
public final class PromptConnectionData extends Object implements 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 itstype(), and each type corresponds to aIPromptServiceHandlerimplementation which knows how to handle connections of that type.- Since:
- 8.5.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPromptConnectionData.BuilderBuilder for prompt connection data instances.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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.Stringdescription()Gets the internal description of the prompt connection.Stringname()Gets the name of the prompt connection.PromptScopescope()Gets the scope (assignee) of the prompt connection.Stringtype()Gets the prompt service type of the prompt connection.UUIDuuid()Gets the UUID of the prompt connection.
-
-
-
Method Detail
-
description
public String 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
public String 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
public PromptScope 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
public String 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
public UUID 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
public static PromptConnectionData.Builder builder()
Creates a new builder for a prompt connection data instance.
-
builder
public static PromptConnectionData.Builder builder(PromptConnectionData data)
Creates a new builder pre-configured with the data of this connection.- Returns:
- A new builder.
-
-