Class Prompt
-
- All Implemented Interfaces:
public final class Prompt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPrompt.BuilderA builder for Prompt.
public final classPrompt.LogIdA literal 'p' which identifies the object as a project prompt
public final classPrompt.FunctionTypepublic final classPrompt.MetadataUser-controlled metadata about the prompt
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for the prompt final String_xactId()The transaction id of an event is unique to the network operation that processed the event insertion. final Prompt.LogIdlogId()A literal 'p' which identifies the object as a project prompt final Stringname()Name of the prompt final StringorgId()Unique identifier for the organization final StringprojectId()Unique identifier for the project that the prompt belongs under final Stringslug()Unique identifier for the prompt final Optional<OffsetDateTime>created()Date of prompt creation final Optional<String>description()Textual description of the prompt final Optional<Prompt.FunctionType>functionType()final Optional<Prompt.Metadata>metadata()User-controlled metadata about the prompt final Optional<PromptData>promptData()The prompt, model, and its parameters final Optional<List<String>>tags()A list of tags for the prompt final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>__xactId()Returns the raw JSON value of _xactId. final JsonField<Prompt.LogId>_logId()Returns the raw JSON value of logId. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_orgId()Returns the raw JSON value of orgId. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_slug()Returns the raw JSON value of slug. final JsonField<OffsetDateTime>_created()Returns the raw JSON value of created. final JsonField<String>_description()Returns the raw JSON value of description. final JsonField<Prompt.FunctionType>_functionType()Returns the raw JSON value of functionType. final JsonField<Prompt.Metadata>_metadata()Returns the raw JSON value of metadata. 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 Promptvalidate()final Prompt.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Prompt.Builderbuilder()Returns a mutable builder for constructing an instance of Prompt. -
-
Method Detail
-
_xactId
final 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)
-
logId
final Prompt.LogId logId()
A literal 'p' which identifies the object as a project prompt
-
created
final Optional<OffsetDateTime> created()
Date of prompt creation
-
description
final Optional<String> description()
Textual description of the prompt
-
functionType
final Optional<Prompt.FunctionType> functionType()
-
metadata
final Optional<Prompt.Metadata> metadata()
User-controlled metadata about the prompt
-
promptData
final Optional<PromptData> promptData()
The prompt, model, and its parameters
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
__xactId
final JsonField<String> __xactId()
Returns the raw JSON value of _xactId.
Unlike _xactId, this method doesn't throw if the JSON field has an unexpected type.
-
_logId
final JsonField<Prompt.LogId> _logId()
Returns the raw JSON value of logId.
Unlike logId, 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.
-
_orgId
final JsonField<String> _orgId()
Returns the raw JSON value of orgId.
Unlike orgId, 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.
-
_created
final JsonField<OffsetDateTime> _created()
Returns the raw JSON value of created.
Unlike created, 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.
-
_functionType
final JsonField<Prompt.FunctionType> _functionType()
Returns the raw JSON value of functionType.
Unlike functionType, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<Prompt.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, 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()
-
toBuilder
final Prompt.Builder toBuilder()
-
builder
final static Prompt.Builder builder()
Returns a mutable builder for constructing an instance of Prompt.
The following fields are required:
.id() ._xactId() .logId() .name() .orgId() .projectId() .slug()
-
-
-
-