Improved consensus to treat a step properly as both a request + response, and initial step includes Claude's assessment.

Improved prompt to not request for code when it's a general business decision
This commit is contained in:
Fahad
2025-06-22 13:37:32 +04:00
parent 18f6f16ac6
commit 521c6c0e61
6 changed files with 79 additions and 118 deletions

View File

@@ -502,6 +502,16 @@ of the evidence, even when it strongly points in one direction.""",
# Add accumulated responses for tracking
response_data["accumulated_responses"] = self.accumulated_responses
# Add metadata (since we're bypassing the base class metadata addition)
model_name = self.get_request_model_name(request)
provider = self.get_model_provider(model_name)
response_data["metadata"] = {
"tool_name": self.get_name(),
"model_name": model_name,
"model_used": model_name,
"provider_used": provider.get_provider_type().value,
}
return [TextContent(type="text", text=json.dumps(response_data, indent=2))]
# Otherwise, use standard workflow execution