fix: bind AgentToolRegistry as singleton for in-process tool execution
Without singleton binding, each app()->make() call creates a fresh instance and tools registered via McpToolsRegistering are lost. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bad718da8d
commit
8bc6e62f13
1 changed files with 1 additions and 0 deletions
1
Boot.php
1
Boot.php
|
|
@ -80,6 +80,7 @@ class Boot extends ServiceProvider
|
|||
}
|
||||
|
||||
$this->app->singleton(\Core\Mod\Agentic\Services\AgenticManager::class);
|
||||
$this->app->singleton(\Core\Mod\Agentic\Services\AgentToolRegistry::class);
|
||||
|
||||
$this->app->singleton(\Core\Mod\Agentic\Services\BrainService::class, function ($app) {
|
||||
$ollamaUrl = config('mcp.brain.ollama_url', 'http://localhost:11434');
|
||||
|
|
|
|||
Reference in a new issue