How katonaj/study-planning-agent works
Study Planning Agent accepts student and assignment data, checks for missing input, requests calendar availability, plans sessions, and returns a StudyPlan. The orchestrator coordinates workflow states, calendar access, persistence, and memory; the planner applies priority/deadline ordering and session limits. The README also documents domain modeling, calendar success/failure behavior, relational persistence, request-state tracking, tool-call logs, and agent memory. The graph reflects the sampled runtime and documented capabilities; unsampled subsystem details and relationships are omitted where evidence is insufficient.
Main entry points: orchestrator.py Workflow orchestrator · run.py Demo entry point · sqlite_database.py SQLite connection setup · sqlite_repository.py SQLite study repository
Components 15
Application workflow
- Demo entry point
run.py - Workflow orchestrator
agent/orchestrator.py - Workflow states
agent/states.py - Study planner
agent/planner.py
Domain and ports
- Study domain model
domain/models.py - Calendar contract
ports/calendar_port.py - Study repository contract
ports/study_repository.py - Memory contract
ports/memory_store.py
Runtime adapters
- Fake calendar
adapters/fake_calendar.py - SQLite study repository
adapters/sqlite_repository.py - SQLite agent memory
adapters/sqlite_memory.py
Relational persistence
- SQLite connection setup
adapters/sqlite_database.py - Relational schema
db/schema.sql - SQLite database
Other components
- Student user
Connections 20
- Student user → Demo entry point: provides input
README.md - Demo entry point → Workflow orchestrator: starts workflow
run.py - Workflow orchestrator → Study planner: delegates planning
agent/orchestrator.py - Study planner → Study domain model: builds plan
agent/planner.py - Workflow orchestrator → Study domain model: returns plan
agent/orchestrator.py - Workflow orchestrator → Workflow states: updates state
agent/orchestrator.py - Workflow orchestrator → Calendar contract: requests availability
agent/orchestrator.py - Fake calendar → Calendar contract: implements contract
adapters/fake_calendar.py - Workflow orchestrator → Study repository contract: persists workflow
agent/orchestrator.py - SQLite study repository → Study repository contract: implements contract
adapters/sqlite_repository.py - Workflow orchestrator → Memory contract: records events
agent/orchestrator.py - SQLite agent memory → Memory contract: implements contract
adapters/sqlite_memory.py - SQLite study repository → SQLite connection setup: opens connections
adapters/sqlite_repository.py - SQLite agent memory → SQLite connection setup: opens connections
adapters/sqlite_memory.py - SQLite connection setup → Relational schema: loads schema
adapters/sqlite_database.py - SQLite connection setup → SQLite database: initializes database
adapters/sqlite_database.py - SQLite study repository → SQLite database: stores study data
adapters/sqlite_repository.py - SQLite agent memory → SQLite database: stores memory events
adapters/sqlite_memory.py - Demo entry point → SQLite database: initializes storage
run.py - Demo entry point → Student user: displays plan
run.py