Record Class ToolInputRequest
java.lang.Object
java.lang.Record
com.suncode.pwfl.ai.tool.ToolInputRequest
- Record Components:
requestedSchema- JSON Schema of the form as JSON text; used inToolInputMode.FORMmodeurl- page the user opens; used inToolInputMode.URLmode
-
Constructor Summary
ConstructorsConstructorDescriptionToolInputRequest(ToolInputMode mode, String message, String requestedSchema, String url) Creates an instance of aToolInputRequestrecord 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.message()Returns the value of themessagerecord component.mode()Returns the value of themoderecord component.Returns the value of therequestedSchemarecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
ToolInputRequest
Creates an instance of aToolInputRequestrecord class.- Parameters:
mode- the value for themoderecord componentmessage- the value for themessagerecord componentrequestedSchema- the value for therequestedSchemarecord componenturl- the value for theurlrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
requestedSchema
Returns the value of therequestedSchemarecord component.- Returns:
- the value of the
requestedSchemarecord component
-
url
-