SurfSense/surfsense_backend/app/agents/alison/state.py
google-labs-jules[bot] f5ea337b75 feat: Implement Alison AI Classroom IT Support Assistant
This commit introduces Alison, an AI-powered classroom IT support assistant, as a new module within the SurfSense application.

Key features of this implementation include:

- A new LangGraph-based agent for conversational troubleshooting.
- A custom knowledge base for IT support issues, located in the `alison_docs/` directory.
- An extension of the RAG pipeline to use Alison's knowledge base.
- Role-aware responses for professors and proctors.
- A configuration toggle to enable or disable the Alison module.
- Documentation for setting up and using Alison.

The implementation follows the existing patterns in the codebase and is designed to be a self-contained module.

Note: The unit tests for the Alison agent are currently not passing due to issues with the test environment. Further work is needed to get the tests to run correctly.
2025-09-09 20:55:21 +00:00

16 lines
454 B
Python

from typing import TypedDict, List, Any
class AlisonState(TypedDict):
"""
Represents the state of the Alison agent's workflow.
"""
user_query: str
identified_problem: str | None
troubleshooting_steps: List[str] | None
visual_aids: List[str] | None
escalation_required: bool
user_role: str # "professor" or "proctor"
final_response: str | None
db_session: Any
chat_history: Any
streaming_service: Any