Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
- Updates dependencies
- Uses SmartHomeControl package
  • Loading branch information
butschster committed Sep 7, 2024
1 parent bfc9121 commit 870bdb3
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 948 deletions.
2 changes: 1 addition & 1 deletion app/Agents/AgentsCaller/AskAgentTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace App\Agents\AgentsCaller;

use App\Agents\PhpTool;
use LLM\Agents\AgentExecutor\ExecutorInterface;
use LLM\Agents\LLM\Prompt\Chat\ToolCallResultMessage;
use LLM\Agents\LLM\Response\ToolCalledResponse;
use LLM\Agents\PromptGenerator\Context;
use LLM\Agents\Tool\PhpTool;
use LLM\Agents\Tool\ToolExecutor;

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Agents/CodeReviewer/ListProjectTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Agents\CodeReviewer;

use App\Agents\PhpTool;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<ListProjectInput>
Expand Down
2 changes: 1 addition & 1 deletion app/Agents/CodeReviewer/ReadFileTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Agents\CodeReviewer;

use App\Agents\PhpTool;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<ReadFileInput>
Expand Down
2 changes: 1 addition & 1 deletion app/Agents/CodeReviewer/ReviewTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace App\Agents\CodeReviewer;

use App\Agents\PhpTool;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<ReviewInput>
Expand Down
4 changes: 2 additions & 2 deletions app/Agents/Delivery/GetDeliveryDateTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace App\Agents\Delivery;

use App\Agents\PhpTool;
use Carbon\Carbon;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<DeliveryDateInput>
* @extends PhpTool<DeliveryDateInput>
*/
final class GetDeliveryDateTool extends PhpTool
{
Expand Down
4 changes: 2 additions & 2 deletions app/Agents/Delivery/GetOrderNumberTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Agents\Delivery;

use App\Agents\PhpTool;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<OrderNumberInput>
* @extends PhpTool<OrderNumberInput>
*/
final class GetOrderNumberTool extends PhpTool
{
Expand Down
4 changes: 2 additions & 2 deletions app/Agents/Delivery/GetProfileTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

namespace App\Agents\Delivery;

use App\Agents\PhpTool;
use LLM\Agents\Tool\PhpTool;

/**
* @extends PhpTool<ProfileInput>
* @extends PhpTool<ProfileInput>
*/
final class GetProfileTool extends PhpTool
{
Expand Down
2 changes: 1 addition & 1 deletion app/Agents/DynamicMemoryTool/DynamicMemoryTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace App\Agents\DynamicMemoryTool;

use App\Agents\PhpTool;
use LLM\Agents\Solution\MetadataType;
use LLM\Agents\Solution\SolutionMetadata;
use LLM\Agents\Tool\PhpTool;
use Ramsey\Uuid\Uuid;

final class DynamicMemoryTool extends PhpTool
Expand Down
20 changes: 0 additions & 20 deletions app/Agents/PhpTool.php

This file was deleted.

25 changes: 0 additions & 25 deletions app/Agents/SmartHomeControl/ControlDeviceInput.php

This file was deleted.

41 changes: 0 additions & 41 deletions app/Agents/SmartHomeControl/ControlDeviceTool.php

This file was deleted.

18 changes: 0 additions & 18 deletions app/Agents/SmartHomeControl/DeviceAction.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Agents/SmartHomeControl/DeviceParam.php

This file was deleted.

15 changes: 0 additions & 15 deletions app/Agents/SmartHomeControl/GetDeviceDetailsInput.php

This file was deleted.

44 changes: 0 additions & 44 deletions app/Agents/SmartHomeControl/GetDeviceDetailsTool.php

This file was deleted.

17 changes: 0 additions & 17 deletions app/Agents/SmartHomeControl/GetRoomListInput.php

This file was deleted.

35 changes: 0 additions & 35 deletions app/Agents/SmartHomeControl/GetRoomListTool.php

This file was deleted.

15 changes: 0 additions & 15 deletions app/Agents/SmartHomeControl/ListRoomDevicesInput.php

This file was deleted.

48 changes: 0 additions & 48 deletions app/Agents/SmartHomeControl/ListRoomDevicesTool.php

This file was deleted.

Loading

0 comments on commit 870bdb3

Please sign in to comment.