Class AgentResponse
java.lang.Object
com.tnsai.quality.validation.parallel.AgentResponse
Response from a single agent in parallel validation.
Contains the response content, confidence score, execution time, and metadata about the agent that produced it.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentResponse.Builderbuilder()static AgentResponseCreates a failed response.doublebooleanstatic AgentResponsesuccess(String agentId, String modelName, String response, double confidence, Duration executionTime) Creates a successful response.toString()
-
Method Details
-
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
-
getModelName
-
getResponse
-
getConfidence
public double getConfidence() -
getExecutionTime
-
getTimestamp
-
isSuccessful
public boolean isSuccessful() -
getErrorMessage
-
toString
-