'use client' import { useState } from 'react' import { TASK_STATES, INTENT_GROUPS, DSGVO_CATEGORIES, API_ENDPOINTS } from './constants' export function TabDemo() { const [demoLoaded, setDemoLoaded] = useState(false) return (
Hinweis: Die Demo erfordert, dass der Voice Service (Port 8091) und das Studio-v2 Frontend (Port 3001) laufen.
docker compose up -d voice-service && cd studio-v2 && npm run dev
{`
DRAFT → QUEUED → RUNNING → READY
│
┌───────────┴───────────┐
│ │
APPROVED REJECTED
│ │
COMPLETED DRAFT (revision)
Any State → EXPIRED (TTL)
Any State → PAUSED (User Interrupt)
`}
{state.description}
{state.next.length > 0 && ({intent.type}
{intent.description}
| Kategorie | Verarbeitung | Speicherort | TTL | Risiko |
|---|---|---|---|---|
| {cat.icon}{cat.category} | {cat.processing} | {cat.storage} | {cat.ttl} | {cat.risk.toUpperCase()} |
| Methode | Endpoint | Beschreibung |
|---|---|---|
| {ep.method} | {ep.path} | {ep.description} |
Binary: Int16 PCM Audio (24kHz, 80ms)JSON: {`{type: "config|end_turn|interrupt"}`}Binary: Audio Response (base64)JSON: {`{type: "transcript|intent|status|error"}`}{`curl -X POST http://localhost:8091/api/v1/sessions \\
-H "Content-Type: application/json" \\
-d '{
"namespace_id": "ns-12345678abcdef12345678abcdef12",
"key_hash": "sha256:dGVzdGtleWhhc2h0ZXN0a2V5aGFzaHRlc3Q=",
"device_type": "pwa"
}'`}