-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94074e2
commit c1a738c
Showing
6 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
src/Integrations/Laravel/SiteStatusCheckerServiceProvider.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace LLM\Agents\Agent\SiteStatusChecker\Integrations\Laravel; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use LLM\Agents\Agent\AgentRegistryInterface; | ||
use LLM\Agents\Agent\SiteStatusChecker\CheckSiteAvailabilityTool; | ||
use LLM\Agents\Agent\SiteStatusChecker\GetDNSInfoTool; | ||
use LLM\Agents\Agent\SiteStatusChecker\PerformPingTestTool; | ||
use LLM\Agents\Agent\SiteStatusChecker\SiteStatusCheckerAgentFactory; | ||
use LLM\Agents\Tool\ToolRegistryInterface; | ||
|
||
final class SiteStatusCheckerServiceProvider extends ServiceProvider | ||
{ | ||
public function boot( | ||
AgentRegistryInterface $agents, | ||
ToolRegistryInterface $tools, | ||
SiteStatusCheckerAgentFactory $siteStatusCheckerAgentFactory, | ||
): void { | ||
$agents->register( | ||
$siteStatusCheckerAgentFactory->create(), | ||
); | ||
|
||
$tools->register( | ||
new CheckSiteAvailabilityTool(), | ||
new GetDNSInfoTool(), | ||
new PerformPingTestTool(), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.