feat: Add LangGraph streaming with real-time UI updates

- Add streaming schemas and events
- Implement run_review_stream in ReviewerAgent
- Update task_worker to broadcast streaming events via WebSocket
- Create ReviewStream component for real-time progress visualization
- Integrate ReviewStream into ReviewDetail page
- Show agent steps, LLM messages, and progress in real-time
This commit is contained in:
Primakov Alexandr Alexandrovich
2025-10-13 01:00:49 +03:00
parent 2ad11142ad
commit 4ab6400a87
6 changed files with 383 additions and 3 deletions
+12
View File
@@ -16,6 +16,13 @@ from app.schemas.webhook import (
GitHubWebhook,
BitbucketWebhook
)
from app.schemas.streaming import (
StreamEvent,
AgentStepEvent,
LLMStreamEvent,
ReviewProgressEvent,
StreamEventType
)
__all__ = [
"RepositoryCreate",
@@ -28,5 +35,10 @@ __all__ = [
"GiteaWebhook",
"GitHubWebhook",
"BitbucketWebhook",
"StreamEvent",
"AgentStepEvent",
"LLMStreamEvent",
"ReviewProgressEvent",
"StreamEventType",
]