Class FunctionReplaceParams.Body
-
- All Implemented Interfaces:
public final class FunctionReplaceParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFunctionReplaceParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final FunctionReplaceParams.FunctionDatafunctionData()final Stringname()Name of the prompt final StringprojectId()Unique identifier for the project that the prompt belongs under final Stringslug()Unique identifier for the prompt final Optional<String>description()Textual description of the prompt final Optional<FunctionReplaceParams.FunctionSchema>functionSchema()JSON schema for the function's parameters and return type final Optional<FunctionReplaceParams.FunctionType>functionType()final Optional<FunctionReplaceParams.Origin>origin()final Optional<PromptData>promptData()The prompt, model, and its parameters final Optional<List<String>>tags()A list of tags for the prompt final JsonField<FunctionReplaceParams.FunctionData>_functionData()Returns the raw JSON value of functionData. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_slug()Returns the raw JSON value of slug. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<FunctionReplaceParams.FunctionSchema>_functionSchema()Returns the raw JSON value of functionSchema. final JsonField<FunctionReplaceParams.FunctionType>_functionType()Returns the raw JSON value of functionType. final JsonField<FunctionReplaceParams.Origin>_origin()Returns the raw JSON value of origin. final JsonField<PromptData>_promptData()Returns the raw JSON value of promptData. final JsonField<List<String>>_tags()Returns the raw JSON value of tags. final Map<String, JsonValue>_additionalProperties()final FunctionReplaceParams.Bodyvalidate()final FunctionReplaceParams.Body.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionReplaceParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
functionData
final FunctionReplaceParams.FunctionData functionData()
-
description
final Optional<String> description()
Textual description of the prompt
-
functionSchema
final Optional<FunctionReplaceParams.FunctionSchema> functionSchema()
JSON schema for the function's parameters and return type
-
functionType
final Optional<FunctionReplaceParams.FunctionType> functionType()
-
origin
final Optional<FunctionReplaceParams.Origin> origin()
-
promptData
final Optional<PromptData> promptData()
The prompt, model, and its parameters
-
_functionData
final JsonField<FunctionReplaceParams.FunctionData> _functionData()
Returns the raw JSON value of functionData.
Unlike functionData, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_slug
final JsonField<String> _slug()
Returns the raw JSON value of slug.
Unlike slug, this method doesn't throw if the JSON field has an unexpected type.
-
_description
final JsonField<String> _description()
Returns the raw JSON value of description.
Unlike description, this method doesn't throw if the JSON field has an unexpected type.
-
_functionSchema
final JsonField<FunctionReplaceParams.FunctionSchema> _functionSchema()
Returns the raw JSON value of functionSchema.
Unlike functionSchema, this method doesn't throw if the JSON field has an unexpected type.
-
_functionType
final JsonField<FunctionReplaceParams.FunctionType> _functionType()
Returns the raw JSON value of functionType.
Unlike functionType, this method doesn't throw if the JSON field has an unexpected type.
-
_origin
final JsonField<FunctionReplaceParams.Origin> _origin()
Returns the raw JSON value of origin.
Unlike origin, this method doesn't throw if the JSON field has an unexpected type.
-
_promptData
final JsonField<PromptData> _promptData()
Returns the raw JSON value of promptData.
Unlike promptData, this method doesn't throw if the JSON field has an unexpected type.
-
_tags
final JsonField<List<String>> _tags()
Returns the raw JSON value of tags.
Unlike tags, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final FunctionReplaceParams.Body validate()
-
toBuilder
final FunctionReplaceParams.Body.Builder toBuilder()
-
builder
final static FunctionReplaceParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.functionData() .name() .projectId() .slug()
-
-
-
-