Class ChatPrompt.Builder
java.lang.Object
com.langfuse.client.resources.prompts.types.ChatPrompt.Builder
- All Implemented Interfaces:
ChatPrompt._FinalStage,ChatPrompt.ConfigStage,ChatPrompt.NameStage,ChatPrompt.VersionStage
- Enclosing class:
ChatPrompt
public static final class ChatPrompt.Builder
extends Object
implements ChatPrompt.NameStage, ChatPrompt.VersionStage, ChatPrompt.ConfigStage, ChatPrompt._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels(List<String> labels) List of deployment labels of this prompt version.addAllPrompt(List<ChatMessageWithPlaceholders> prompt) addAllTags(List<String> tags) List of tags.additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) List of deployment labels of this prompt version.addPrompt(ChatMessageWithPlaceholders prompt) List of tags.build()commitMessage(String commitMessage) Commit message for this prompt version.commitMessage(Optional<String> commitMessage) Commit message for this prompt version.from(ChatPrompt other) List of deployment labels of this prompt version.prompt(List<ChatMessageWithPlaceholders> prompt) resolutionGraph(Map<String, Object> resolutionGraph) The dependency resolution graph for the current prompt.resolutionGraph(Optional<Map<String, Object>> resolutionGraph) The dependency resolution graph for the current prompt.List of tags.version(int version)
-
Method Details
-
from
- Specified by:
fromin interfaceChatPrompt.NameStage
-
name
- Specified by:
namein interfaceChatPrompt.NameStage
-
version
- Specified by:
versionin interfaceChatPrompt.VersionStage
-
config
- Specified by:
configin interfaceChatPrompt.ConfigStage
-
addAllPrompt
- Specified by:
addAllPromptin interfaceChatPrompt._FinalStage
-
addPrompt
- Specified by:
addPromptin interfaceChatPrompt._FinalStage
-
prompt
- Specified by:
promptin interfaceChatPrompt._FinalStage
-
resolutionGraph
The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
- Specified by:
resolutionGraphin interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resolutionGraph
The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
- Specified by:
resolutionGraphin interfaceChatPrompt._FinalStage
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceChatPrompt._FinalStage
-
addAllTags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
addAllTagsin interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
addTagsin interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
tagsin interfaceChatPrompt._FinalStage
-
addAllLabels
List of deployment labels of this prompt version.
- Specified by:
addAllLabelsin interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addLabels
List of deployment labels of this prompt version.
- Specified by:
addLabelsin interfaceChatPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
labels
List of deployment labels of this prompt version.
- Specified by:
labelsin interfaceChatPrompt._FinalStage
-
build
- Specified by:
buildin interfaceChatPrompt._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceChatPrompt._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceChatPrompt._FinalStage
-