Package com.braintrustdata.api.models
Class PromptData
-
- All Implemented Interfaces:
public final class PromptDataThe prompt, model, and its parameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPromptData.BuilderA builder for PromptData.
public final classPromptData.Originpublic final classPromptData.Parserpublic final classPromptData.Promptpublic final classPromptData.ToolFunction
-
Method Summary
-
-
Method Detail
-
options
final Optional<PromptOptions> options()
-
origin
final Optional<PromptData.Origin> origin()
-
parser
final Optional<PromptData.Parser> parser()
-
prompt
final Optional<PromptData.Prompt> prompt()
-
toolFunctions
final Optional<List<PromptData.ToolFunction>> toolFunctions()
-
_options
final JsonField<PromptOptions> _options()
Returns the raw JSON value of options.
Unlike options, this method doesn't throw if the JSON field has an unexpected type.
-
_origin
final JsonField<PromptData.Origin> _origin()
Returns the raw JSON value of origin.
Unlike origin, this method doesn't throw if the JSON field has an unexpected type.
-
_parser
final JsonField<PromptData.Parser> _parser()
Returns the raw JSON value of parser.
Unlike parser, this method doesn't throw if the JSON field has an unexpected type.
-
_prompt
final JsonField<PromptData.Prompt> _prompt()
Returns the raw JSON value of prompt.
Unlike prompt, this method doesn't throw if the JSON field has an unexpected type.
-
_toolFunctions
final JsonField<List<PromptData.ToolFunction>> _toolFunctions()
Returns the raw JSON value of toolFunctions.
Unlike toolFunctions, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final PromptData validate()
-
toBuilder
final PromptData.Builder toBuilder()
-
builder
final static PromptData.Builder builder()
Returns a mutable builder for constructing an instance of PromptData.
-
-
-
-