Skip to content

Commit 118a9fb

Browse files
committed
Adds laravel integration
1 parent 60e51f4 commit 118a9fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace LLM\Agents\PromptGenerator\Integration\Laravel;
6+
7+
use Illuminate\Support\ServiceProvider;
8+
use LLM\Agents\LLM\AgentPromptGeneratorInterface;
9+
use LLM\Agents\PromptGenerator\PromptGeneratorPipeline;
10+
use LLM\Agents\PromptGenerator\PromptGeneratorPipelineInterface;
11+
12+
final class PromptGeneratorServiceProvider extends ServiceProvider
13+
{
14+
public function register(): void
15+
{
16+
$this->app->singleton(PromptGeneratorPipeline::class, PromptGeneratorPipeline::class);
17+
$this->app->singleton(PromptGeneratorPipelineInterface::class, PromptGeneratorPipeline::class);
18+
$this->app->singleton(AgentPromptGeneratorInterface::class, PromptGeneratorPipeline::class);
19+
}
20+
}

0 commit comments

Comments
 (0)