Class FunctionCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class FunctionCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
functionData
final FunctionCreateParams.Body.Builder functionData(FunctionCreateParams.FunctionData functionData)
-
functionData
final FunctionCreateParams.Body.Builder functionData(JsonField<FunctionCreateParams.FunctionData> functionData)
Sets Builder.functionData to an arbitrary JSON value.
You should usually call Builder.functionData with a well-typed FunctionData value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
functionData
final FunctionCreateParams.Body.Builder functionData(FunctionCreateParams.FunctionData.Prompt prompt)
Alias for calling functionData with
FunctionData.ofPrompt(prompt).
-
functionData
final FunctionCreateParams.Body.Builder functionData(FunctionCreateParams.FunctionData.Code code)
Alias for calling functionData with
FunctionData.ofCode(code).
-
functionData
final FunctionCreateParams.Body.Builder functionData(FunctionCreateParams.FunctionData.Global global)
Alias for calling functionData with
FunctionData.ofGlobal(global).
-
name
final FunctionCreateParams.Body.Builder name(String name)
Name of the prompt
-
name
final FunctionCreateParams.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 FunctionCreateParams.Body.Builder projectId(String projectId)
Unique identifier for the project that the prompt belongs under
-
projectId
final FunctionCreateParams.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 FunctionCreateParams.Body.Builder slug(String slug)
Unique identifier for the prompt
-
slug
final FunctionCreateParams.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 FunctionCreateParams.Body.Builder description(String description)
Textual description of the prompt
-
description
final FunctionCreateParams.Body.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final FunctionCreateParams.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.
-
functionSchema
final FunctionCreateParams.Body.Builder functionSchema(FunctionCreateParams.FunctionSchema functionSchema)
JSON schema for the function's parameters and return type
-
functionSchema
final FunctionCreateParams.Body.Builder functionSchema(Optional<FunctionCreateParams.FunctionSchema> functionSchema)
Alias for calling Builder.functionSchema with
functionSchema.orElse(null).
-
functionSchema
final FunctionCreateParams.Body.Builder functionSchema(JsonField<FunctionCreateParams.FunctionSchema> functionSchema)
Sets Builder.functionSchema to an arbitrary JSON value.
You should usually call Builder.functionSchema with a well-typed FunctionSchema value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
functionType
final FunctionCreateParams.Body.Builder functionType(FunctionCreateParams.FunctionType functionType)
-
functionType
final FunctionCreateParams.Body.Builder functionType(Optional<FunctionCreateParams.FunctionType> functionType)
Alias for calling Builder.functionType with
functionType.orElse(null).
-
functionType
final FunctionCreateParams.Body.Builder functionType(JsonField<FunctionCreateParams.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.
-
origin
final FunctionCreateParams.Body.Builder origin(FunctionCreateParams.Origin origin)
-
origin
final FunctionCreateParams.Body.Builder origin(Optional<FunctionCreateParams.Origin> origin)
Alias for calling Builder.origin with
origin.orElse(null).
-
origin
final FunctionCreateParams.Body.Builder origin(JsonField<FunctionCreateParams.Origin> origin)
Sets Builder.origin to an arbitrary JSON value.
You should usually call Builder.origin with a well-typed Origin value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptData
final FunctionCreateParams.Body.Builder promptData(PromptData promptData)
The prompt, model, and its parameters
-
promptData
final FunctionCreateParams.Body.Builder promptData(Optional<PromptData> promptData)
Alias for calling Builder.promptData with
promptData.orElse(null).
-
promptData
final FunctionCreateParams.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 FunctionCreateParams.Body.Builder tags(List<String> tags)
A list of tags for the prompt
-
tags
final FunctionCreateParams.Body.Builder tags(Optional<List<String>> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final FunctionCreateParams.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 FunctionCreateParams.Body.Builder addTag(String tag)
-
additionalProperties
final FunctionCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FunctionCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FunctionCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FunctionCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FunctionCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FunctionCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.functionData() .name() .projectId() .slug()
-
-
-
-