- 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
45 lines
836 B
Python
45 lines
836 B
Python
"""Pydantic schemas for API"""
|
|
|
|
from app.schemas.repository import (
|
|
RepositoryCreate,
|
|
RepositoryUpdate,
|
|
RepositoryResponse,
|
|
RepositoryList
|
|
)
|
|
from app.schemas.review import (
|
|
ReviewResponse,
|
|
ReviewList,
|
|
CommentResponse
|
|
)
|
|
from app.schemas.webhook import (
|
|
GiteaWebhook,
|
|
GitHubWebhook,
|
|
BitbucketWebhook
|
|
)
|
|
from app.schemas.streaming import (
|
|
StreamEvent,
|
|
AgentStepEvent,
|
|
LLMStreamEvent,
|
|
ReviewProgressEvent,
|
|
StreamEventType
|
|
)
|
|
|
|
__all__ = [
|
|
"RepositoryCreate",
|
|
"RepositoryUpdate",
|
|
"RepositoryResponse",
|
|
"RepositoryList",
|
|
"ReviewResponse",
|
|
"ReviewList",
|
|
"CommentResponse",
|
|
"GiteaWebhook",
|
|
"GitHubWebhook",
|
|
"BitbucketWebhook",
|
|
"StreamEvent",
|
|
"AgentStepEvent",
|
|
"LLMStreamEvent",
|
|
"ReviewProgressEvent",
|
|
"StreamEventType",
|
|
]
|
|
|