Class PromptCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class PromptCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
name
final PromptCreateParams.Body.Builder name(String name)
Name of the prompt
-
name
final PromptCreateParams.Body.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.
-
projectId
final PromptCreateParams.Body.Builder projectId(String projectId)
Unique identifier for the project that the prompt belongs under
-
projectId
final PromptCreateParams.Body.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 PromptCreateParams.Body.Builder slug(String slug)
Unique identifier for the prompt
-
slug
final PromptCreateParams.Body.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.
-
description
final PromptCreateParams.Body.Builder description(String description)
Textual description of the prompt
-
description
final PromptCreateParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final PromptCreateParams.Body.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 PromptCreateParams.Body.Builder functionType(PromptCreateParams.FunctionType functionType)
-
functionType
final PromptCreateParams.Body.Builder functionType(Optional<PromptCreateParams.FunctionType> functionType)
Alias for calling Builder.functionType with
functionType.orElse(null).
-
functionType
final PromptCreateParams.Body.Builder functionType(JsonField<PromptCreateParams.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.
-
promptData
final PromptCreateParams.Body.Builder promptData(PromptData promptData)
The prompt, model, and its parameters
-
promptData
final PromptCreateParams.Body.Builder promptData(Optional<PromptData> promptData)
Alias for calling Builder.promptData with
promptData.orElse(null).
-
promptData
final PromptCreateParams.Body.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 PromptCreateParams.Body.Builder tags(List<String> tags)
A list of tags for the prompt
-
tags
final PromptCreateParams.Body.Builder tags(Optional<List<String>> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final PromptCreateParams.Body.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 PromptCreateParams.Body.Builder addTag(String tag)
-
additionalProperties
final PromptCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.name() .projectId() .slug()
-
-
-
-