Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ GOOGLE_SERVICE_ACCOUNT=/app/credentials/chatbot-sa.json
# ============================================================
MODEL_URI=google_genai:gemini-2.5-flash
MODEL_TEMPERATURE=0.2
MAX_TOKENS=524288

# ============================================================
# == LangSmith settings ==
Expand Down
3 changes: 0 additions & 3 deletions app/agent/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from .react_agent import ReActAgent

__all__ = ["ReActAgent"]
29 changes: 0 additions & 29 deletions app/agent/hooks.py

This file was deleted.

312 changes: 0 additions & 312 deletions app/agent/react_agent.py

This file was deleted.

3 changes: 0 additions & 3 deletions app/agent/types.py

This file was deleted.

7 changes: 3 additions & 4 deletions app/api/dependencies/agent.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from typing import Annotated

from fastapi import Depends, Request
from langgraph.graph.state import CompiledStateGraph

from app.agent import ReActAgent


def get_agent(request: Request) -> ReActAgent:
def get_agent(request: Request) -> CompiledStateGraph:
return request.app.state.agent


Agent = Annotated[ReActAgent, Depends(get_agent)]
Agent = Annotated[CompiledStateGraph, Depends(get_agent)]
Loading