Record Class HumanInTheLoop
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.workflow.HumanInTheLoop
- All Implemented Interfaces:
AgentSpecsProvider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanasync()Returns the value of theasyncrecord 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.inputKey()Returns the value of theinputKeyrecord component.Returns the value of theoutputKeyrecord component.Consumer<?> Returns the value of therequestWriterrecord component.Supplier<?> Returns the value of theresponseReaderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HumanInTheLoop
public HumanInTheLoop(String inputKey, String outputKey, String description, Consumer<?> requestWriter, boolean async, Supplier<?> responseReader) Creates an instance of aHumanInTheLooprecord class.- Parameters:
inputKey- the value for theinputKeyrecord componentoutputKey- the value for theoutputKeyrecord componentdescription- the value for thedescriptionrecord componentrequestWriter- the value for therequestWriterrecord componentasync- the value for theasyncrecord componentresponseReader- the value for theresponseReaderrecord component
-
-
Method Details
-
askUser
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
inputKey
Returns the value of theinputKeyrecord component.- Specified by:
inputKeyin interfaceAgentSpecsProvider- Returns:
- the value of the
inputKeyrecord component
-
outputKey
Returns the value of theoutputKeyrecord component.- Specified by:
outputKeyin interfaceAgentSpecsProvider- Returns:
- the value of the
outputKeyrecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceAgentSpecsProvider- Returns:
- the value of the
descriptionrecord component
-
requestWriter
Returns the value of therequestWriterrecord component.- Returns:
- the value of the
requestWriterrecord component
-
async
public boolean async()Returns the value of theasyncrecord component.- Specified by:
asyncin interfaceAgentSpecsProvider- Returns:
- the value of the
asyncrecord component
-
responseReader
Returns the value of theresponseReaderrecord component.- Returns:
- the value of the
responseReaderrecord component
-