Getting Started
Getting Started
Install the AI package and wire the smallest useful agent-backed chat flow.
This section covers the minimum moving parts for using @tulip-systems/ai in an app.
At a high level, an integration has four layers:
- server tools and agents
- a server endpoint or RPC handler that streams agent output
- client chat UI that sends messages and renders streamed parts
- optional client tool renderers for rich tool-call cards
Recommended path
Prerequisites
- React 19
- AI SDK 7
- a model provider such as OpenRouter, OpenAI, Anthropic, or Google
- a server boundary for agent definitions and tool execution
Mental model
The package intentionally separates server and client concerns:
agents/servercreates tool-loop agents and delegation toolstools/serverdefines canonical tools and resolves them to agent/MCP transportschat/serverstreams agent responses from server codechat/clientrenders composable chat UItools/clientdefines how tool calls should render in chat