Class AgentResponse

java.lang.Object
com.tnsai.quality.validation.parallel.AgentResponse

public class AgentResponse extends Object
Response from a single agent in parallel validation.

Contains the response content, confidence score, execution time, and metadata about the agent that produced it.

  • Method Details

    • builder

      public static AgentResponse.Builder builder()
    • success

      public static AgentResponse success(String agentId, String modelName, String response, double confidence, Duration executionTime)
      Creates a successful response.
    • failure

      public static AgentResponse failure(String agentId, String modelName, String errorMessage, Duration executionTime)
      Creates a failed response.
    • getAgentId

      public String getAgentId()
    • getModelName

      public String getModelName()
    • getResponse

      public String getResponse()
    • getConfidence

      public double getConfidence()
    • getExecutionTime

      public Duration getExecutionTime()
    • getTimestamp

      public Instant getTimestamp()
    • isSuccessful

      public boolean isSuccessful()
    • getErrorMessage

      public Optional<String> getErrorMessage()
    • toString

      public String toString()
      Overrides:
      toString in class Object