Commit 1c603de
Strip TTS, Wikipedia RAG, activity-page agents, and OTEL for workshop starter
This rebuilds main as the workshop-starter version of the app: same
architecture, infra, art-style picker, and docs as all-features, but
with the four 'guide-able' features removed so workshop attendees can
build them back in following the docs in docs/04..07.
Removed:
- TTS: backend/app/tts.py, /api/tts route, AZURE_SPEECH_* settings,
azure-cognitiveservices-speech dep, frontend listen/play buttons.
- Wikipedia RAG: backend/app/wikipedia.py, wikipedia_topic /
wikipedia_mode StoryRequest fields, orchestrator integration,
prompt block, and frontend Wikipedia mode UI.
- Activity-page agents: look_and_find, character_glossary,
approval_gateway, final_assembly executors and the bonus fan-out
branch in workflow.py; activity-page models, prompts, frontend
pages, ProgressTracker rows, and demo-story event entries.
- OTEL observability: backend/app/telemetry.py, telemetry import in
main.py, opentelemetry-* deps, OTEL spans/record_llm_usage calls
in agents, and OTEL/ENABLE_INSTRUMENTATION settings.
Workflow now reverts to the core sequential chain:
Orchestrator -> StoryArchitect -> ArtDirector -> [StoryReviewer?] -> Decision
Decision yields the StoryResponse directly to the workflow output
(no FinalAssembly downstream).
Speech-related Bicep params kept as optional in infra/ so users
following the TTS guide can 'azd env set AZURE_SPEECH_RESOURCE_ID …'
+ 'azd provision' without re-editing Bicep.
Demo stories: stripped look_and_find / character_glossary keys from
each story.json and removed bonus-agent + wikipedia events from the
matching events.json so they replay cleanly with the new tracker.
Also: ignore backend/demo_stories/_drafts/ (per-session draft images
created by the storage backend at runtime, only promoted on save).
Verified:
- python -m compileall -q backend/app: clean
- 'from app.main import app; build_story_workflow(StoryRequest())': OK
- frontend npm run lint: 131 errors (down from 167 baseline)
- frontend npm run build: clean
- az bicep build infra/main.bicep: clean
- end-to-end SSE smoke test (uvicorn + curl): event: complete fires;
final story has only the new StoryResponse keys (no look_and_find,
no character_glossary); only the 5 expected executors emit progress
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2a25b78 commit 1c603de
33 files changed
Lines changed: 228 additions & 2519 deletions
File tree
- backend
- app
- agents
- demo_stories
- lilly-and-ben-on-both-sides-of-the-wall
- moon-joy-the-brave-journey-of-artemis-ii
- thomas-the-turtle-and-the-foggy-forest-rescue
- frontend/src
- components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
26 | 24 | | |
27 | 25 | | |
28 | 26 | | |
29 | | - | |
| 27 | + | |
30 | 28 | | |
31 | 29 | | |
32 | 30 | | |
| |||
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
82 | 77 | | |
83 | 78 | | |
84 | 79 | | |
| |||
160 | 155 | | |
161 | 156 | | |
162 | 157 | | |
| 158 | + | |
This file was deleted.
0 commit comments