Skip to content

Commit

Permalink
Updates agents package version
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Sep 7, 2024
1 parent 94074e2 commit c1a738c
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 18 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"license": "MIT",
"require": {
"php": "^8.3",
"llm-agents/agents": "^1.0"
"llm-agents/agents": "^1.5",
"llm-agents/json-schema-mapper": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^11.3",
"spiral/boot": "^3.13"
"spiral/boot": "^3.13",
"illuminate/support": "^11.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 2 additions & 0 deletions src/CheckSiteAvailabilityTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace LLM\Agents\Agent\SiteStatusChecker;

use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<CheckSiteAvailabilityInput>
*/
Expand Down
2 changes: 2 additions & 0 deletions src/GetDNSInfoTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

namespace LLM\Agents\Agent\SiteStatusChecker;

use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<GetDNSInfoInput>
*/
Expand Down
32 changes: 32 additions & 0 deletions src/Integrations/Laravel/SiteStatusCheckerServiceProvider.php
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(),
);
}
}
2 changes: 2 additions & 0 deletions src/PerformPingTestTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace LLM\Agents\Agent\SiteStatusChecker;

use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<PerformPingTestInput>
*/
Expand Down
16 changes: 0 additions & 16 deletions src/PhpTool.php

This file was deleted.

0 comments on commit c1a738c

Please sign in to comment.