पेज · Laravilt
Agents
Resource-aware AI agents with columns, permissions and tools.
Laravilt AI has two agent types:
Laravilt\AI\AIAgent: the fluent configuration object a panel resource returns fromai(). It describes the model, columns, permissions, provider and tools, and is exported to the frontend.Laravilt\AI\ResourceAgent(extends the abstractLaravilt\AI\Agent): an executable agent that holds instructions and generated tools for a model.AIAgent::toResourceAgent()converts one into the other.
| Page | Description |
|---|---|
| Resource agents | Configure ai() on a panel resource |
| AI columns | Describe columns for the model |
| Configuration | Providers, models and defaults |
ResourceAgent
php
Tools are generated inside model(). To skip them, call autoGenerateTools(false) before model(). addTool(), tools() and metadata() add more.