Overview
This section documents the public API exposed by @interopio/ai-web.
AI Web is the package to use when you are building a custom assistant frontend and want direct access to agents, threads, tools, resources, Working Context, and MCP Apps from application code.
What This Reference Covers
The AI Web API reference is organized around these companion pages:
- API Reference for the factory function and runtime namespaces
- Configuration for
IoAiWeb.WebConfigand related config types - Examples for practical integration patterns
Main Integration Surface
Most integrations follow the same high-level flow:
- Initialize io.Connect in your application.
- Call
IoAiWebFactory(io, config). - Use the returned API to list agents, create threads, run agents, inspect tools, and read resources.
- Optionally enable Working Context and MCP Apps through configuration.
Runtime Namespaces
The object returned by IoAiWebFactory exposes these primary namespaces:
| Namespace | Purpose |
|---|---|
agents | List agents and start streaming or generated runs |
threads | Create, list, update, and delete conversation threads |
tools | List tools, enable or disable them, and call them directly |
resources | List MCP resources and read resource content |
system | Disconnect active MCP transports |
context | Access the Working Context API when configured |
mcpApps | Manage MCP App instances when configured |
The returned API also includes server, but the main public integration points for frontend applications are the namespaces above.
Before You Start
AI Web expects:
- an initialized
IOConnectBrowser.APIorIOConnectDesktop.APIinstance - a backend that implements the io.Intelligence Agent Protocol reachable through
agentServer.baseUrl - optional MCP transport configuration when you want tools or resources
For a product-level explanation of where AI Web fits, see AI Web Overview.
Related Resources
- Introduction for the package-selection overview
- Agent Protocol Reference for the backend contract consumed by AI Web
- MCP Overview if you are wiring assistant access to application tools and resources
- Working Context Overview if your assistant should consume live workflow context
- AI Mastra Bridge Overview if your protocol-compatible backend is Mastra-based