User Guide
Guides for using fm.cr
Learn how to use fm.cr to integrate Apple's on-device language model into your Crystal applications.
In This Section
Getting Started
Prerequisites, installation, and your first fm.cr program
Basic Usage
Models, sessions, and generating responses
Streaming
Stream responses from the model in real time
Structured Output
Type-safe responses with Generable and JSON schemas
Tool Calling
Extend model capabilities with custom tools
Context Management
Transcripts, token estimation, and session compaction