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 TypeMethodDescriptionboolean
async()
Returns the value of theasync
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinputName
record component.Returns the value of theoutputName
record component.Consumer
<?> Returns the value of therequestWriter
record component.Supplier
<?> Returns the value of theresponseReader
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
HumanInTheLoop
public HumanInTheLoop(String inputName, String outputName, String description, Consumer<?> requestWriter, boolean async, Supplier<?> responseReader) Creates an instance of aHumanInTheLoop
record class.- Parameters:
inputName
- the value for theinputName
record componentoutputName
- the value for theoutputName
record componentdescription
- the value for thedescription
record componentrequestWriter
- the value for therequestWriter
record componentasync
- the value for theasync
record componentresponseReader
- the value for theresponseReader
record 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 thecompare
method from their corresponding wrapper classes. -
inputName
Returns the value of theinputName
record component.- Specified by:
inputName
in interfaceAgentSpecsProvider
- Returns:
- the value of the
inputName
record component
-
outputName
Returns the value of theoutputName
record component.- Specified by:
outputName
in interfaceAgentSpecsProvider
- Returns:
- the value of the
outputName
record component
-
description
Returns the value of thedescription
record component.- Specified by:
description
in interfaceAgentSpecsProvider
- Returns:
- the value of the
description
record component
-
requestWriter
Returns the value of therequestWriter
record component.- Returns:
- the value of the
requestWriter
record component
-
async
public boolean async()Returns the value of theasync
record component.- Specified by:
async
in interfaceAgentSpecsProvider
- Returns:
- the value of the
async
record component
-
responseReader
Returns the value of theresponseReader
record component.- Returns:
- the value of the
responseReader
record component
-