Record Class HumanInTheLoop
java.lang.Object
java.lang.Record
dev.langchain4j.agentic.workflow.HumanInTheLoop
- All Implemented Interfaces:
AgentSpecsProvider
public record HumanInTheLoop(String outputKey, String description, boolean async, Function<AgenticScope, ?> responseProvider, AgentListener listener)
extends Record
implements AgentSpecsProvider
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHumanInTheLoop(String outputKey, String description, boolean async, Function<AgenticScope, ?> responseProvider, AgentListener listener) Creates an instance of aHumanInTheLooprecord class. -
Method Summary
Modifier and TypeMethodDescriptionaskUser(AgenticScope scope) booleanasync()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.listener()Returns the value of thelistenerrecord component.Returns the value of theoutputKeyrecord component.Function<AgenticScope, ?> Returns the value of theresponseProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HumanInTheLoop
public HumanInTheLoop(String outputKey, String description, boolean async, Function<AgenticScope, ?> responseProvider, AgentListener listener) Creates an instance of aHumanInTheLooprecord class.- Parameters:
outputKey- the value for theoutputKeyrecord componentdescription- the value for thedescriptionrecord componentasync- the value for theasyncrecord componentresponseProvider- the value for theresponseProviderrecord componentlistener- the value for thelistenerrecord 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. -
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
-
async
public boolean async()Returns the value of theasyncrecord component.- Specified by:
asyncin interfaceAgentSpecsProvider- Returns:
- the value of the
asyncrecord component
-
responseProvider
Returns the value of theresponseProviderrecord component.- Returns:
- the value of the
responseProviderrecord component
-
listener
Returns the value of thelistenerrecord component.- Specified by:
listenerin interfaceAgentSpecsProvider- Returns:
- the value of the
listenerrecord component
-