Skip to content

feat: add deferred tool#201

Draft
eznix86 wants to merge 1 commit intolaravel:0.xfrom
eznix86:deferred_tool
Draft

feat: add deferred tool#201
eznix86 wants to merge 1 commit intolaravel:0.xfrom
eznix86:deferred_tool

Conversation

@eznix86
Copy link
Contributor

@eznix86 eznix86 commented Feb 22, 2026

fixes #200

What you get:

class SyncInventoryTool implements Tool, ShouldDeferTool
{
  // ...
}

// or 

#[Deferred]
class ReindexKnowledgeBaseTool implements Tool
{
    // ...
}

Event triggered: DeferredToolQueued

php artisan queue:listen

   INFO  Processing jobs from the [default] queue.  

  2026-02-22 13:29:54 Laravel\Ai\Jobs\RunDeferredTool ................ RUNNING
  2026-02-22 13:29:54 Laravel\Ai\Jobs\RunDeferredTool ............ 4.05ms DONE

@pushpak1300 pushpak1300 marked this pull request as draft March 12, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Deferred Tool Execution

1 participant