Package com.rpl.agentorama
Interface HumanInputRequest
- All Superinterfaces:
AgentStep
Represents a request for human input during agent execution.
When an agent calls
AgentNode.getHumanInput(String) within a node function, it creates
a human input request that must be responded to before the agent can continue.
Example:
AgentStep step = client.nextStep(invoke);
if (step instanceof HumanInputRequest) {
HumanInputRequest request = (HumanInputRequest) step;
client.provideHumanInput(request, "Yes, proceed");
}
-
Method Summary
-
Method Details
-
getNode
String getNode()Gets the name of the node that requested human input.- Returns:
- the node name
-
getNodeInvokeId
UUID getNodeInvokeId()Gets the unique ID of the node invocation that requested human input.- Returns:
- the node invoke ID
-
getPrompt
String getPrompt()Gets the prompt text shown to the human.- Returns:
- the prompt text
-