ii-agent-ekspress-testirovan/scheme.md

41 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```mermaid
flowchart LR
subgraph user["Сотрудник (Монтер)"]
Start(["Начало: Переход по ссылке"])
InputAnswers["Ввод ответов на 10 вопросов"]
ViewResult(["Просмотр результата: % и вердикт"])
EndNode(["Конец: Закрытие страницы"])
end
subgraph ai["ИИ-агент (Alem)"]
Search["Поиск в Яндекс: 'ТБ монтер Казахстан'"]
Parse["Чтение контента первой ссылки"]
Generate["Генерация 10 вопросов и ключей"]
Check["Сверка ответов и расчет процента"]
end
subgraph web["Веб-интерфейс"]
ShowTest["Отображение формы теста"]
NoData["Сообщение: 'Нет данных'"]
Decision{"Данные найдены?"}
end
Start --> Search
Search --> Parse
Parse --> Decision
Decision -- "Нет (ошибка/пусто)" --> NoData
Decision -- "Да (текст получен)" --> Generate
NoData --> ViewResult
Generate --> ShowTest
ShowTest --> InputAnswers
InputAnswers --> Check
Check --> ViewResult
ViewResult --> EndNode
style Start fill:#e1f5fe,stroke:#01579b
style EndNode fill:#e1f5fe,stroke:#01579b
style NoData fill:#ffebee,stroke:#c62828
style ViewResult fill:#fff9c4,stroke:#fbc02d
style Decision fill:#fff3e0,stroke:#e65100
```