mirror of
https://github.com/thecyberlearn/quantum-ai-v3.git
synced 2026-08-18 09:52:58 +00:00
Cleanup Tasks Completed: • Remove populate_agents management command (obsolete with file-based agents) • Clean up unused Agent serializers and API endpoints • Remove redundant database model imports and queries • Update documentation to reflect file-based architecture Technical Changes: • Deleted agents/management/commands/populate_agents.py • Removed AgentSerializer and AgentCategorySerializer (unused) • Removed agent_list and agent_detail API endpoints (replaced by file service) • Cleaned up unused imports (models.db) • Updated CLAUDE.md documentation for file-based system Benefits: • Cleaner codebase with 100+ lines removed • No obsolete database commands • Streamlined API surface (only execution-related endpoints remain) • Updated documentation reflects current architecture • All functionality verified working All 8 agents and marketplace functionality confirmed operational after cleanup. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
14 lines
544 B
Python
14 lines
544 B
Python
from rest_framework import serializers
|
|
from .models import AgentExecution
|
|
|
|
class AgentExecutionSerializer(serializers.ModelSerializer):
|
|
# Note: agent field will contain the database Agent record for foreign key compatibility
|
|
# The actual agent data comes from files via AgentFileService
|
|
|
|
class Meta:
|
|
model = AgentExecution
|
|
fields = [
|
|
'id', 'agent', 'input_data', 'output_data', 'status',
|
|
'fee_charged', 'error_message', 'execution_time',
|
|
'created_at', 'completed_at'
|
|
] |