Wasm agents blueprint enables running AI agents as standalone HTML files directly in the browser without extra dependencies.
Agents leverage WebAssembly and Pyodide to run Python code and the openai-agents library in a sandboxed environment.
Users can connect to OpenAI API models by default or self-hosted OpenAI-compatible models through HuggingFace TGI, vLLM, or Ollama.
Demo HTML files include simple conversational agents, multi-agent handoff, tool-calling agents, and local-model offline agents.
Known limitations include reliance on the openai-agents framework, CORS restrictions, need for a local inference engine, and heavy model resource requirements.
The project encourages users to customize code, experiment with prompts, test different models and frameworks, and explore tool-calling capabilities.
Get notified when new stories are published for "🇺🇸 Hacker News English"