mirror of
https://github.com/symfony/ai-bundle.git
synced 2026-03-23 23:12:08 +01:00
main
This PR was squashed before being merged into the main branch. Discussion ---------- [AI Bundle][Profiler] Fix all tools listing duplicates for each agent | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT If one is registering multiple agents the tools listing in the profiler is getting full of duplicates. So, for example, there is a `search_entries` tool and a `entry_detail` tool but you have two different agents and both get all tools, then the "Tools" section in the profiler which should just be a list of all tools available shows each of these tools in double. I first deduplicated by taking the execution class and method as a unique selling point but had to take also the name into account as, with the names, it is also possible to have multiple tools with the same execution reference but just different names. That popped up as i thought about the subagent tool. So hopefully `__name__::__class__::__method__` is unique enough for deduplication in the profiler all tools listing in any case. Commits ------- 75077c5d [AI Bundle][Profiler] Fix all tools listing duplicates for each agent
Symfony AI Bundle
Integration bundle for Symfony AI components.
This Bundle is experimental. Experimental features are not covered by Symfony's Backward Compatibility Promise.
Installation
composer require symfony/ai-bundle
This repository is a READ-ONLY sub-tree split. See https://github.com/symfony/ai to create issues or submit pull requests.
Resources
Languages
PHP
98.1%
Twig
1.9%