diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/agent_generator/core.py b/autogpt_platform/backend/backend/api/features/chat/tools/agent_generator/core.py index 7d2f720368..1c7d73e3f8 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/agent_generator/core.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/agent_generator/core.py @@ -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]] diff --git a/autogpt_platform/backend/backend/api/features/chat/tools/edit_agent.py b/autogpt_platform/backend/backend/api/features/chat/tools/edit_agent.py index f57cd69574..376702d202 100644 --- a/autogpt_platform/backend/backend/api/features/chat/tools/edit_agent.py +++ b/autogpt_platform/backend/backend/api/features/chat/tools/edit_agent.py @@ -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,