aillmrag
Build your first agent stack
Compose an AI agent with the SDK, a tool registry, and a streaming endpoint.
The DeesseJS agent stack wires three things together: a model provider, a tool registry, and a streaming endpoint that surfaces the agent's reasoning in real time.
1. Install the SDK
pnpm add @deessejs/agents
2. Compose an agent
import { Agent } from "@deessejs/agents"
const agent = new Agent({
model: "claude-sonnet",
tools: [searchDocs, runQuery, deployPreview],
})
3. Stream the response
for await (const chunk of agent.stream("Deploy the staging env")) {
process.stdout.write(chunk.text)
}
What's next
- Use the Next.js RAG template — wire embeddings and a vector store.
- Add observability — capture traces from the streaming endpoint.