Download the PHP package creativecrafts/laravel-ai-agent-kit without Composer

On this page you can find all versions of the php package creativecrafts/laravel-ai-agent-kit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-ai-agent-kit

Laravel AI Agent Kit

Latest Version on Packagist GitHub CI Total Downloads

Laravel AI Agent Kit is a Laravel package for building AI-powered application workflows on top of the official Laravel AI SDK. It gives your app package-owned blueprints, agents, provider profiles, tools, memory, queues, vector retrieval, and redacted telemetry without exposing provider SDK details as your public workflow API.

Use it when you want Laravel-native AI workflows that are explicit, testable, and safe by default.

Installation

Install the package with Composer:

composer require creativecrafts/laravel-ai-agent-kit

Publish the Laravel AI SDK configuration and migrations:

php artisan vendor:publish --provider="Laravel\\Ai\\AiServiceProvider"

Publish this package's configuration and migrations:

php artisan vendor:publish --tag="ai-agent-kit-config"
php artisan vendor:publish --tag="ai-agent-kit-migrations"
php artisan migrate

Optionally publish views:

php artisan vendor:publish --tag="ai-agent-kit-views"

Minimal configuration

After publishing config/ai-agent-kit.php, configure at least one enabled provider profile. The default local/test setup can use the bundled null provider profile. Production apps should configure real Laravel AI provider credentials through Laravel AI and map package provider profiles to the capabilities your workflows need.

At minimum, make sure:

See Providers for the full setup path.

Quick start: evaluate text

Prefer dependency injection in controllers, jobs, commands, and application services:

use CreativeCrafts\LaravelAiAgentKit\Blueprints\TextToStructuredEvaluation;
use CreativeCrafts\LaravelAiAgentKit\Blueprints\TextToStructuredEvaluationRequest;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

final class EvaluateSupportReplyController
{
    public function __invoke(Request $request, TextToStructuredEvaluation $evaluation): JsonResponse
    {
        $result = $evaluation->evaluate(
            new TextToStructuredEvaluationRequest(
                subject: 'support reply',
                text: $request->string('text')->toString(),
                enabledDimensions: ['clarity', 'accuracy', 'completeness'],
                promptVersion: '1.0.0',
            ),
        );

        return response()->json($result->toArray());
    }
}

For route-level experiments or concise examples, the AgentKit facade exposes the same application-facing workflow shortcuts:

use CreativeCrafts\LaravelAiAgentKit\Blueprints\TextToStructuredEvaluationRequest;
use CreativeCrafts\LaravelAiAgentKit\Facades\AgentKit;

$result = AgentKit::evaluateText(
    new TextToStructuredEvaluationRequest(
        subject: 'support reply',
        text: 'We can refund the unused portion of your subscription within five business days.',
        enabledDimensions: ['clarity', 'accuracy', 'completeness'],
        promptVersion: '1.0.0',
    ),
);

Quick start: evaluate audio

Use the audio blueprint when the workflow should transcribe audio and evaluate the transcript through one package-owned result shape:

use CreativeCrafts\LaravelAiAgentKit\Blueprints\AudioToTextToEvaluationRequest;
use CreativeCrafts\LaravelAiAgentKit\Facades\AgentKit;

$result = AgentKit::evaluateAudio(
    new AudioToTextToEvaluationRequest(
        subject: 'support call',
        audioReference: 's3://bucket/audio/support-call.wav',
        audioMimeType: 'audio/wav',
        enabledDimensions: ['clarity', 'accuracy'],
        transcriptionPromptVersion: '1.0.0',
        evaluationPromptVersion: '1.0.0',
    ),
);

See Blueprints for request fields, result fields, prompt requirements, and structured-output behavior.

Quick start: evaluate audio with image

Use the audio-image blueprint when structured evaluation needs both a transcript and an image attachment:

use CreativeCrafts\LaravelAiAgentKit\Blueprints\AudioImageStructuredEvaluationRequest;
use CreativeCrafts\LaravelAiAgentKit\Blueprints\EvaluationImageInput;
use CreativeCrafts\LaravelAiAgentKit\Core\Modality\TranscriptionAudioSource;
use CreativeCrafts\LaravelAiAgentKit\Facades\AgentKit;

$result = AgentKit::evaluateAudioImage(
    new AudioImageStructuredEvaluationRequest(
        runId: 'eval-001',
        audio: TranscriptionAudioSource::fromBase64(base64_encode($audioBytes), 'audio/wav'),
        image: EvaluationImageInput::fromUrl('https://example.com/screenshot.png'),
        evaluationPrompt: 'Evaluate the transcript against the image.',
        schema: YourEvaluationSchema::class,
    ),
);

See Blueprints for capability requirements and pipeline composition.

Quick start: register and orchestrate agents

Register first-class agents explicitly through the package registry:

use App\Agents\CancellationAgent;
use App\Agents\CustomerSupportAgent;
use CreativeCrafts\LaravelAiAgentKit\Contracts\Agents\AgentRegistry;
use Illuminate\Support\ServiceProvider;

final class AppServiceProvider extends ServiceProvider
{
    public function boot(AgentRegistry $agents): void
    {
        $agents->registerMany([
            CustomerSupportAgent::class,
            CancellationAgent::class,
        ]);
    }
}

Then start an orchestrated workflow:

use CreativeCrafts\LaravelAiAgentKit\Core\Orchestration\OrchestrationRequest;
use CreativeCrafts\LaravelAiAgentKit\Facades\AgentKit;

$result = AgentKit::orchestrate(
    new OrchestrationRequest(
        entryAgent: 'support.agent',
        task: 'Handle a support refund workflow',
        input: ['subscription_id' => 'sub-123'],
    ),
);

See Agents and orchestration for agent definitions, delegation, handoffs, provider-profile assignment, and trace semantics.

Core concepts

Concept What it gives you Guide
Provider profiles Capability-based provider selection and failover Providers
Blueprints Ready-made workflows such as text and audio evaluation Blueprints
Agents Package-owned multi-agent workflow participants Agents and orchestration
Prompts Versioned templates and explicit variables Prompts
Tools Explicit registration, schema validation, and authorization Tools
Memory Conversation continuation with in-memory, database, or Redis drivers Memory
Pipelines and queues Structured sync or queued execution with RunContext Pipelines and queues
Vectors and retrieval Application-owned vector stores plus provider Files/Stores boundaries Vectors and retrieval
Streaming and modalities Streaming text, transcription, embeddings, images, reranking, and audio generation Streaming and modalities
Errors and telemetry Typed failure categories and redacted package events Errors and telemetry
Testing Package fakes and deterministic app tests Testing
Production Operational defaults and deployment checks Production

Security and privacy defaults

Documentation

Start with Getting started, then move to the focused guide for the subsystem you need. Maintainer and contributor process documents live behind CONTRIBUTING.md.

Credits

License

The MIT License (MIT). Please see LICENSE.md for more information.


All versions of laravel-ai-agent-kit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4|^8.5
illuminate/contracts Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
laravel/ai Version ^0.10
spatie/laravel-package-tools Version ^1.93
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package creativecrafts/laravel-ai-agent-kit contains the following files

Loading the files please wait ...