Download the PHP package muazzambuilds/filament-ai-actions without Composer
On this page you can find all versions of the php package muazzambuilds/filament-ai-actions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download muazzambuilds/filament-ai-actions
More information about muazzambuilds/filament-ai-actions
Files in muazzambuilds/filament-ai-actions
Package filament-ai-actions
Short Description OpenAI-powered Filament v5 actions for summarizing, rewriting, classifying, generating, and translating content.
License MIT
Homepage https://github.com/muazzambuilds/filament-ai-actions
Informations about the package filament-ai-actions
Filament AI Actions
OpenAI-powered actions for Filament v5. Drop complete Summarize, Rewrite, Classify, Generate, and Translate actions onto tables and forms — no DIY prompt wiring.
Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.2 |
| Laravel | ^11 / ^12 |
| Filament | ^5.0 |
| OpenAI | API key |
Installation
Publish config (optional):
Optional panel registration:
Panel settings are inherited by every action in that panel. Per-action model() and enabled() settings take precedence or further restrict availability. Registering the plugin is optional; actions fall back to package configuration when no plugin is registered.
Usage
Summarize
Rewrite
Classify
Classification only accepts one of the configured label keys (or values for a list). JSON responses such as {"label":"bug"} are supported, and invalid or ambiguous model output is never persisted.
Generate
The modal asks for a generation prompt and lets the user review or edit the context before submitting.
Translate
The language field is a searchable dropdown containing all 183 ISO 639-1 languages by default. Use languages([...]) only when you want to restrict or customize the available targets:
Custom content source
Generation controls and result handling
All actions support per-action model controls and custom prompts:
applyTo() saves the model by default. To fill the model and refresh an open Filament form without saving it automatically, use saveResult(false):
For complete control, replace the default assignment and persistence behavior:
The generated result is also shown in a persistent success notification. saveResult(false) is the recommended option when a user must review and save changes manually.
Table example
Actions hide themselves when OPENAI_API_KEY is missing, when the panel plugin is disabled, or when their own enabled() condition evaluates to false.
Configuration
Support
If this package helps you, consider supporting development:
License
MIT — see LICENSE.
All versions of filament-ai-actions with dependencies
filament/filament Version ^5.0
illuminate/contracts Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16