Package ai.octoryn.sdk
Record Class GenerateObjectRequest<T>
java.lang.Object
java.lang.Record
ai.octoryn.sdk.GenerateObjectRequest<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGenerateObjectRequest(GenerateTextRequest text, com.fasterxml.jackson.databind.JsonNode schema, Class<T> target) GenerateObjectRequest(GenerateTextRequest text, com.fasterxml.jackson.databind.JsonNode schema, String schemaName, String schemaDescription, Class<T> target) Creates an instance of aGenerateObjectRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNodeschema()Returns the value of theschemarecord component.Returns the value of theschemaDescriptionrecord component.Returns the value of theschemaNamerecord component.target()Returns the value of thetargetrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenerateObjectRequest
public GenerateObjectRequest(GenerateTextRequest text, com.fasterxml.jackson.databind.JsonNode schema, Class<T> target) -
GenerateObjectRequest
public GenerateObjectRequest(GenerateTextRequest text, com.fasterxml.jackson.databind.JsonNode schema, String schemaName, String schemaDescription, Class<T> target) Creates an instance of aGenerateObjectRequestrecord class.- Parameters:
text- the value for thetextrecord componentschema- the value for theschemarecord componentschemaName- the value for theschemaNamerecord componentschemaDescription- the value for theschemaDescriptionrecord componenttarget- the value for thetargetrecord 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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
schema
public com.fasterxml.jackson.databind.JsonNode schema()Returns the value of theschemarecord component.- Returns:
- the value of the
schemarecord component
-
schemaName
Returns the value of theschemaNamerecord component.- Returns:
- the value of the
schemaNamerecord component
-
schemaDescription
Returns the value of theschemaDescriptionrecord component.- Returns:
- the value of the
schemaDescriptionrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-