Overview
The ICRL TypeScript package (icrl) provides the same trajectory-learning framework as the Python package. Use the pages in this section for detailed API documentation.
Core Components
- Agent — main agent class
- TrajectoryDatabase — trajectory store with semantic search
- TrajectoryRetriever — step-level retrieval
- CurationManager — automatic curation
- ReActLoop — planning, reasoning, acting loop
Storage & Protocols
- StorageAdapter — pluggable storage interface; built-in
FileSystemAdapter - Environment — environment protocol
- LLMProvider — LLM protocol
- Embedder — embedding protocol
Models
- Models —
Trajectory,Step,Message,StepExample, helpers
Providers
- OpenAI Provider —
OpenAIProvider,OpenAIEmbedder - Anthropic Provider —
AnthropicProvider,AnthropicVertexProvider

