Skip to content

Commit

Permalink
add tool type
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Sep 22, 2024
1 parent 52065db commit a1b032e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Domains/Sources/WebhookSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Bus;
use Illuminate\Support\Facades\Log;
use LlmLaraHub\LlmDriver\Functions\ToolTypes;
use LlmLaraHub\LlmDriver\LlmDriverFacade;
use LlmLaraHub\TagFunction\Jobs\TagDocumentJob;

Expand Down Expand Up @@ -64,7 +65,8 @@ public function handle(Source $source): void

$results = LlmDriverFacade::driver(
$source->getDriver()
)->completion($prompt);
)->setToolType(ToolTypes::Source)
->completion($prompt);

if ($this->ifNotActionRequired($results->content)) {
Log::info('[LaraChain] - Webhook Skipping', [
Expand Down

0 comments on commit a1b032e

Please sign in to comment.