Class PromptData.Prompt.Chat.Builder
-
- All Implemented Interfaces:
public final class PromptData.Prompt.Chat.BuilderA builder for Chat.
-
-
Method Summary
-
-
Method Detail
-
messages
final PromptData.Prompt.Chat.Builder messages(List<PromptData.Prompt.Chat.Message> messages)
-
messages
final PromptData.Prompt.Chat.Builder messages(JsonField<List<PromptData.Prompt.Chat.Message>> messages)
Sets Builder.messages to an arbitrary JSON value.
You should usually call Builder.messages with a well-typed
List<Message>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message message)
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.System system)
Alias for calling addMessage with
Message.ofSystem(system).
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.User user)
Alias for calling addMessage with
Message.ofUser(user).
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.Assistant assistant)
Alias for calling addMessage with
Message.ofAssistant(assistant).
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.Tool tool)
Alias for calling addMessage with
Message.ofTool(tool).
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.Function function)
Alias for calling addMessage with
Message.ofFunction(function).
-
addMessage
final PromptData.Prompt.Chat.Builder addMessage(PromptData.Prompt.Chat.Message.Fallback fallback)
Alias for calling addMessage with
Message.ofFallback(fallback).
-
type
final PromptData.Prompt.Chat.Builder type(PromptData.Prompt.Chat.Type type)
-
type
final PromptData.Prompt.Chat.Builder type(JsonField<PromptData.Prompt.Chat.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final PromptData.Prompt.Chat.Builder tools(String tools)
-
tools
final PromptData.Prompt.Chat.Builder tools(JsonField<String> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptData.Prompt.Chat.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptData.Prompt.Chat.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptData.Prompt.Chat.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptData.Prompt.Chat.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptData.Prompt.Chat.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptData.Prompt.Chat build()
Returns an immutable instance of Chat.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.messages() .type()
-
-
-
-