Class Prompt.Builder
-
- All Implemented Interfaces:
public final class Prompt.BuilderA builder for Prompt.
-
-
Method Summary
Modifier and Type Method Description final Prompt.Builderid(String id)Unique identifier for the prompt final Prompt.Builderid(JsonField<String> id)Sets Builder.id to an arbitrary JSON value. final Prompt.Builder_xactId(String _xactId)The transaction id of an event is unique to the network operation that processed the event insertion. final Prompt.Builder_xactId(JsonField<String> _xactId)Sets Builder._xactId to an arbitrary JSON value. final Prompt.BuilderlogId(Prompt.LogId logId)A literal 'p' which identifies the object as a project prompt final Prompt.BuilderlogId(JsonField<Prompt.LogId> logId)Sets Builder.logId to an arbitrary JSON value. final Prompt.Buildername(String name)Name of the prompt final Prompt.Buildername(JsonField<String> name)Sets Builder.name to an arbitrary JSON value. final Prompt.BuilderorgId(String orgId)Unique identifier for the organization final Prompt.BuilderorgId(JsonField<String> orgId)Sets Builder.orgId to an arbitrary JSON value. final Prompt.BuilderprojectId(String projectId)Unique identifier for the project that the prompt belongs under final Prompt.BuilderprojectId(JsonField<String> projectId)Sets Builder.projectId to an arbitrary JSON value. final Prompt.Builderslug(String slug)Unique identifier for the prompt final Prompt.Builderslug(JsonField<String> slug)Sets Builder.slug to an arbitrary JSON value. final Prompt.Buildercreated(OffsetDateTime created)Date of prompt creation final Prompt.Buildercreated(Optional<OffsetDateTime> created)Alias for calling Builder.created with created.orElse(null).final Prompt.Buildercreated(JsonField<OffsetDateTime> created)Sets Builder.created to an arbitrary JSON value. final Prompt.Builderdescription(String description)Textual description of the prompt final Prompt.Builderdescription(Optional<String> description)Alias for calling Builder.description with description.orElse(null).final Prompt.Builderdescription(JsonField<String> description)Sets Builder.description to an arbitrary JSON value. final Prompt.BuilderfunctionType(Prompt.FunctionType functionType)final Prompt.BuilderfunctionType(Optional<Prompt.FunctionType> functionType)Alias for calling Builder.functionType with functionType.orElse(null).final Prompt.BuilderfunctionType(JsonField<Prompt.FunctionType> functionType)Sets Builder.functionType to an arbitrary JSON value. final Prompt.Buildermetadata(Prompt.Metadata metadata)User-controlled metadata about the prompt final Prompt.Buildermetadata(Optional<Prompt.Metadata> metadata)Alias for calling Builder.metadata with metadata.orElse(null).final Prompt.Buildermetadata(JsonField<Prompt.Metadata> metadata)Sets Builder.metadata to an arbitrary JSON value. final Prompt.BuilderpromptData(PromptData promptData)The prompt, model, and its parameters final Prompt.BuilderpromptData(Optional<PromptData> promptData)Alias for calling Builder.promptData with promptData.orElse(null).final Prompt.BuilderpromptData(JsonField<PromptData> promptData)Sets Builder.promptData to an arbitrary JSON value. final Prompt.Buildertags(List<String> tags)A list of tags for the prompt final Prompt.Buildertags(Optional<List<String>> tags)Alias for calling Builder.tags with tags.orElse(null).final Prompt.Buildertags(JsonField<List<String>> tags)Sets Builder.tags to an arbitrary JSON value. final Prompt.BuilderaddTag(String tag)Adds a single String to tags. final Prompt.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final Prompt.BuilderputAdditionalProperty(String key, JsonValue value)final Prompt.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final Prompt.BuilderremoveAdditionalProperty(String key)final Prompt.BuilderremoveAllAdditionalProperties(Set<String> keys)final Promptbuild()Returns an immutable instance of Prompt. -
-
Method Detail
-
id
final Prompt.Builder id(String id)
Unique identifier for the prompt
-
id
final Prompt.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
_xactId
final Prompt.Builder _xactId(String _xactId)
The transaction id of an event is unique to the network operation that processed the event insertion. Transaction ids are monotonically increasing over time and can be used to retrieve a versioned snapshot of the prompt (see the
versionparameter)
-
_xactId
final Prompt.Builder _xactId(JsonField<String> _xactId)
Sets Builder._xactId to an arbitrary JSON value.
You should usually call Builder._xactId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
logId
final Prompt.Builder logId(Prompt.LogId logId)
A literal 'p' which identifies the object as a project prompt
-
logId
final Prompt.Builder logId(JsonField<Prompt.LogId> logId)
Sets Builder.logId to an arbitrary JSON value.
You should usually call Builder.logId with a well-typed LogId value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final Prompt.Builder name(String name)
Name of the prompt
-
name
final Prompt.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orgId
final Prompt.Builder orgId(String orgId)
Unique identifier for the organization
-
orgId
final Prompt.Builder orgId(JsonField<String> orgId)
Sets Builder.orgId to an arbitrary JSON value.
You should usually call Builder.orgId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final Prompt.Builder projectId(String projectId)
Unique identifier for the project that the prompt belongs under
-
projectId
final Prompt.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
slug
final Prompt.Builder slug(String slug)
Unique identifier for the prompt
-
slug
final Prompt.Builder slug(JsonField<String> slug)
Sets Builder.slug to an arbitrary JSON value.
You should usually call Builder.slug with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
created
final Prompt.Builder created(OffsetDateTime created)
Date of prompt creation
-
created
final Prompt.Builder created(Optional<OffsetDateTime> created)
Alias for calling Builder.created with
created.orElse(null).
-
created
final Prompt.Builder created(JsonField<OffsetDateTime> created)
Sets Builder.created to an arbitrary JSON value.
You should usually call Builder.created with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final Prompt.Builder description(String description)
Textual description of the prompt
-
description
final Prompt.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final Prompt.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
functionType
final Prompt.Builder functionType(Prompt.FunctionType functionType)
-
functionType
final Prompt.Builder functionType(Optional<Prompt.FunctionType> functionType)
Alias for calling Builder.functionType with
functionType.orElse(null).
-
functionType
final Prompt.Builder functionType(JsonField<Prompt.FunctionType> functionType)
Sets Builder.functionType to an arbitrary JSON value.
You should usually call Builder.functionType with a well-typed FunctionType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final Prompt.Builder metadata(Prompt.Metadata metadata)
User-controlled metadata about the prompt
-
metadata
final Prompt.Builder metadata(Optional<Prompt.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final Prompt.Builder metadata(JsonField<Prompt.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptData
final Prompt.Builder promptData(PromptData promptData)
The prompt, model, and its parameters
-
promptData
final Prompt.Builder promptData(Optional<PromptData> promptData)
Alias for calling Builder.promptData with
promptData.orElse(null).
-
promptData
final Prompt.Builder promptData(JsonField<PromptData> promptData)
Sets Builder.promptData to an arbitrary JSON value.
You should usually call Builder.promptData with a well-typed PromptData value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tags
final Prompt.Builder tags(List<String> tags)
A list of tags for the prompt
-
tags
final Prompt.Builder tags(Optional<List<String>> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final Prompt.Builder tags(JsonField<List<String>> tags)
Sets Builder.tags to an arbitrary JSON value.
You should usually call Builder.tags with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTag
final Prompt.Builder addTag(String tag)
-
additionalProperties
final Prompt.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final Prompt.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final Prompt.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final Prompt.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final Prompt.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-