# API Reference
{: .no_toc }

The full RDoc documentation for every public class and method in this
version of RubyLLM.

[Browse the API docs](/next/api/){: .btn .btn-primary .fs-5 }
[Browse as Markdown](/next/api/index.md){: .btn .fs-5 }

These guides show you how to build things. The API reference tells you
exactly what each class and method does: signatures, return values, and
examples, in the style of Ruby's own documentation. Good entry points:

- [RubyLLM](/next/api/RubyLLM.html) ([Markdown](/next/api/RubyLLM.md)), the module-level entry points
- [Chat](/next/api/RubyLLM/Chat.html) ([Markdown](/next/api/RubyLLM/Chat.md)), conversations and the agentic loop
- [Tool](/next/api/RubyLLM/Tool.html) ([Markdown](/next/api/RubyLLM/Tool.md)), giving models abilities
- [Agent](/next/api/RubyLLM/Agent.html) ([Markdown](/next/api/RubyLLM/Agent.md)), reusable configured chats
- [ActiveRecord::ActsAs](/next/api/RubyLLM/ActiveRecord/ActsAs.html) ([Markdown](/next/api/RubyLLM/ActiveRecord/ActsAs.md)), the Rails macros
- [Models](/next/api/RubyLLM/Models.html) ([Markdown](/next/api/RubyLLM/Models.md)), the model registry
- [Configuration](/next/api/RubyLLM/Configuration.html) ([Markdown](/next/api/RubyLLM/Configuration.md)), every setting

The API reference is generated from the source with RDoc. Build it locally
with `rake rdoc`.
