Package dev.braintrust.api
Record Class BraintrustApiClient.Prompt
java.lang.Object
java.lang.Record
dev.braintrust.api.BraintrustApiClient.Prompt
- Enclosing interface:
- BraintrustApiClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated()Returns the value of thecreatedrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.metadata()Returns the value of themetadatarecord component.name()Returns the value of thenamerecord component.orgId()Returns the value of theorgIdrecord component.Returns the value of theprojectIdrecord component.Returns the value of thepromptDatarecord component.slug()Returns the value of theslugrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Prompt
public Prompt(String id, String projectId, String orgId, String name, String slug, Optional<String> description, String created, BraintrustApiClient.PromptData promptData, Optional<List<String>> tags, Optional<Object> metadata) Creates an instance of aPromptrecord class.- Parameters:
id- the value for theidrecord componentprojectId- the value for theprojectIdrecord componentorgId- the value for theorgIdrecord componentname- the value for thenamerecord componentslug- the value for theslugrecord componentdescription- the value for thedescriptionrecord componentcreated- the value for thecreatedrecord componentpromptData- the value for thepromptDatarecord componenttags- the value for thetagsrecord componentmetadata- the value for themetadatarecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
orgId
Returns the value of theorgIdrecord component.- Returns:
- the value of the
orgIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
slug
Returns the value of theslugrecord component.- Returns:
- the value of the
slugrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
created
Returns the value of thecreatedrecord component.- Returns:
- the value of the
createdrecord component
-
promptData
Returns the value of thepromptDatarecord component.- Returns:
- the value of the
promptDatarecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-