feat: Removed GPT-Researcher in favour of own SurfSense LangGraph Agent

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-04-20 19:19:35 -07:00
parent 94c94e6898
commit 130f43a0fa
14 changed files with 439 additions and 918 deletions

View file

@ -3,10 +3,9 @@
from __future__ import annotations
from dataclasses import dataclass, field
from typing import List, Optional, Any, Dict, Annotated
from sqlalchemy.ext.asyncio import AsyncSession, AsyncEngine
from langchain_core.messages import BaseMessage, HumanMessage
from pydantic import BaseModel
from typing import Optional, Any
from sqlalchemy.ext.asyncio import AsyncSession
from app.utils.streaming_service import StreamingService
@dataclass
class State:
@ -18,7 +17,9 @@ class State:
"""
# Runtime context (not part of actual graph state)
db_session: AsyncSession
engine: Optional[AsyncEngine] = None
# Streaming service
streaming_service: StreamingService
# Intermediate state - populated during workflow
# Using field to explicitly mark as part of state