5e24215ffe
Co-authored-by: Copilot <copilot@github.com>
27 lines
1.6 KiB
Markdown
27 lines
1.6 KiB
Markdown
# 3. Context and Scope
|
|
|
|
Delimits your system (i.e. your scope) from all its communication partners (neighboring systems and users, i.e. the context of your system). It thereby specifies the external interfaces.
|
|
|
|
## Business Context
|
|
|
|
Specification of **all** communication partners (users, IT-systems, …) with explanations of domain specific inputs and outputs or interfaces.
|
|
|
|
The system exposes REST APIs for authentication, user management, and AI generation. The Flask frontend consumes these APIs and serves pages at `http://ai.allucanget.biz`.
|
|
|
|
| Communication Partner | Input | Output |
|
|
| --------------------- | ------------------------------ | ------------------------------ |
|
|
| End User (browser) | Form submissions, API requests | Generated text, images, videos |
|
|
| openrouter.ai API | Prompt + model selection | AI-generated content |
|
|
| DuckDB | SQL queries | User data, session data |
|
|
|
|
## Technical Context
|
|
|
|
| Channel | Protocol | Description |
|
|
| -------------------------------- | ---------- | ------------------ |
|
|
| User ↔ Flask frontend | HTTPS | Browser-based UI |
|
|
| Flask frontend ↔ FastAPI backend | HTTP REST | Internal API calls |
|
|
| FastAPI backend ↔ openrouter.ai | HTTPS REST | AI model inference |
|
|
| FastAPI backend ↔ DuckDB | In-process | Embedded DB access |
|
|
|
|
**Mapping Input/Output to Channels:** All user-facing traffic flows through HTTPS. The backend communicates with openrouter.ai over HTTPS. DuckDB is accessed in-process with no network channel.
|