Files
Alem Tuzlak 74e574838d feat(showcase): port 8 features to built-in-agent integration
Adds hitl-in-app, readonly-state-agent-context, auth, agent-config,
voice, multimodal, byoc-hashbrown, and byoc-json-render demos to the
built-in-agent showcase. Each demo lives under src/app/demos/<feature>
with a dedicated runtime route under src/app/api/copilotkit-<feature>
where required.

Patterns:
- hitl-in-app and readonly-state-agent-context are frontend-only and
  reuse the default /api/copilotkit runtime.
- auth uses createCopilotRuntimeHandler with the V2 onRequest hook to
  reject requests missing the Bearer token.
- agent-config reads input.forwardedProps inside the BuiltInAgent
  factory and prepends a tone/expertise/length-tuned system prompt.
- voice mounts at [[...slug]]/route.ts and registers
  TranscriptionServiceOpenAI from @copilotkit/voice; falls back to a
  401 with 'api key missing' when OPENAI_API_KEY is unset.
- multimodal reuses the base gpt-4o factory (vision-capable) and the
  TanStack converter (convertInputToTanStackAI) for native image and
  document part forwarding — no langgraph-specific binary rewrite.
- byoc-hashbrown and byoc-json-render add per-demo factories that pin
  modelOptions.response_format to json_object so the streaming UI
  parsers receive a single valid JSON object with no preamble.
2026-04-29 11:39:39 +02:00
..