forked from cardosofelipe/fast-next-template
Create AgentInstance entity and CRUD operations #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Implement AgentInstance entity representing spawned agents working on projects.
Requirements
Entity Fields
Enums
CRUD Operations
create(db, obj_in) -> AgentInstanceget(db, id: UUID) -> Optional[AgentInstance]get_by_project(db, project_id: UUID) -> List[AgentInstance]get_active_by_project(db, project_id: UUID) -> List[AgentInstance]update_status(db, id: UUID, status: AgentStatus) -> AgentInstanceupdate_metrics(db, id: UUID, tokens: int, cost: float) -> AgentInstanceterminate(db, id: UUID) -> AgentInstanceTests
Acceptance Criteria
Technical Notes
Dependencies
Assignable To
backend-engineer agent