hot.dev/hot-ai — Dependency-free building blocks for AI agents: sessions, identities, messages, scoped memory, RAG, context management, and inter-agent communication.
Add to your project
"hot.dev/hot-ai": "1.8.0"
Add this to your deps in hot.hot
Namespaces
::ai
| Namespace | Functions | Types | Description |
|---|---|---|---|
::bus | 4 | 2 | Typed inter-agent event bus. |
::chat | 34 | 13 | Provider-agnostic chat surface used by every `::ai::*` consumer. |
::context | 7 | — | Utilities for fitting content into AI context windows. |
::media | 8 | 6 | Types for AI-generated media files (images, audio, video). |
::memory | 46 | 13 | Session-scoped agent memory with three storage levels: session (shared conversation history), user (per-user persistent data), and KB (shared domain knowledge). |
::message | 6 | 4 | Normalized message types for AI agents. |
::rag | 17 | — | Retrieve-Augment-Generate: compose memory search with AI generation. |
::session | 4 | 2 | Session and Identity types for multi-tenant, multi-participant agents. |
::skill | 20 | 2 | Skills are LLM-judgment-routed prompt augmentations: named bundles |
::stream-labels | 0 | — | Canonical `data-type` labels used across `::ai::*` for |
::tokenizer | 8 | — | Accurate token counting for chat models, backed by `tiktoken-rs` |
::tool | 5 | 3 | Provider-agnostic Tool primitive shared across `::ai::chat`, |