mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
feat: Removed GPT-Researcher in favour of own SurfSense LangGraph Agent
This commit is contained in:
parent
94c94e6898
commit
130f43a0fa
14 changed files with 439 additions and 918 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue