Package com.rpl.agentorama
Interface AgentComplete<T>
- Type Parameters:
T- the type of the result value
- All Superinterfaces:
AgentStep
Represents the completion of an agent execution with a result.
When an agent execution completes successfully, it returns an AgentComplete
containing the final result value.
Example:
AgentStep step = client.nextStep(invoke);
if (step instanceof AgentComplete) {
AgentComplete<String> complete = (AgentComplete<String>) step;
String result = complete.getResult();
System.out.println("Agent result: " + result);
}
-
Method Summary
-
Method Details
-
getResult
T getResult()Gets the final result of the agent execution.- Returns:
- the agent's result value
-