Interface AgentComplete<T>

Type Parameters:
T - the type of the result value
All Superinterfaces:
AgentStep

public interface AgentComplete<T> extends 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

    Modifier and Type
    Method
    Description
    Gets the final result of the agent execution.
  • Method Details

    • getResult

      T getResult()
      Gets the final result of the agent execution.
      Returns:
      the agent's result value