ExercisesApply TypeScript, Rust, and polyglot PraisonAI patterns across 6 realistic scenarios.1. In a Next.js app, why must new Agent(…) run inside an app/api/…/route.ts server handler instead of a client React component? So LLM API keys stay on the server and input validation/rate limits cannot be bypassed in the browser Because TypeScript cannot import praisonai in files ending with .ts Because React cannot display strings returned from async functionsSubmit AnswerShow AnswerTry Again2. What happens if a Next.js route reuses one global stateful Agent instance across concurrent users without session isolation? Conversation context from one user can leak into another user's response TypeScript automatically creates a separate Docker container per user The route runs 10x faster with zero side effectsSubmit AnswerShow AnswerTry Again3. How does the PraisonAI Rust SDK generate the JSON parameter schema for a custom Rust tool? At compile time using the #[tool(description = "…")] procedural macro By calling a Python subprocess on every tool call By hand-writing XML files in target/Submit AnswerShow AnswerTry Again4. Why should you avoid calling blocking std::fs I/O directly inside an async Rust #[tool] function? Blocking calls stall the Tokio worker thread and hurt concurrency across agents Rust forbids reading files in async binaries It forces the model to switch to OllamaSubmit AnswerShow AnswerTry Again5. Your company has a Next.js web app and a heavy Python RAG + fine-tuning pipeline. What is the cleanest PraisonAI architecture? Serve the Python RAG agent over AgentOS/A2A and consume its typed JSON contract from TypeScript Rewrite all vector databases and fine-tuning scripts in browser JavaScript Copy-paste identical prompts into both repos and maintain them separatelySubmit AnswerShow AnswerTry Again6. In a Node.js script using an MCP stdio server, what prevents the process from hanging after the agent prints its final answer? Closing the MCP client cleanly in a finally block Setting stream: true on the agent Adding console.log('done')Submit AnswerShow AnswerTry AgainBack to the TypeScript and Rust tutorial