mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-30 17:38:17 -05:00
refactor: remove inline comments per no-comments guideline
- Remove inline comments from ExecutionSummary and LibraryAgentSummary TypedDicts - Remove inline comment on error_details parameter in edit_agent.py
This commit is contained in:
@@ -30,9 +30,9 @@ logger = logging.getLogger(__name__)
|
||||
class ExecutionSummary(TypedDict):
|
||||
"""Summary of a single execution for quality assessment."""
|
||||
|
||||
status: str # COMPLETED, FAILED, RUNNING, QUEUED
|
||||
correctness_score: NotRequired[float] # 0-1 score if evaluated
|
||||
activity_summary: NotRequired[str] # AI-generated summary of what happened
|
||||
status: str
|
||||
correctness_score: NotRequired[float]
|
||||
activity_summary: NotRequired[str]
|
||||
|
||||
|
||||
class LibraryAgentSummary(TypedDict):
|
||||
@@ -42,14 +42,12 @@ class LibraryAgentSummary(TypedDict):
|
||||
Each execution shows status, correctness_score (0-1), and activity_summary.
|
||||
"""
|
||||
|
||||
# Required fields
|
||||
graph_id: str
|
||||
graph_version: int
|
||||
name: str
|
||||
description: str
|
||||
input_schema: dict[str, Any]
|
||||
output_schema: dict[str, Any]
|
||||
# Recent executions with detailed status and quality info
|
||||
recent_executions: NotRequired[list[ExecutionSummary]]
|
||||
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ class EditAgentTool(BaseTool):
|
||||
operation="generate the changes",
|
||||
llm_parse_message="The AI had trouble generating the changes. Please try again or simplify your request.",
|
||||
validation_message="The generated changes failed validation. Please try rephrasing your request.",
|
||||
error_details=error_msg, # Always pass error details to give users context
|
||||
error_details=error_msg,
|
||||
)
|
||||
return ErrorResponse(
|
||||
message=user_message,
|
||||
|
||||
Reference in New Issue
Block a user