Skip to content

Commit 0d01636

Browse files
valtzuchr-hertel
authored andcommitted
chore: Make tool input and output use autowired serializer (#104)
Make tool input and output to use autowired serializer
1 parent a7da96f commit 0d01636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ai-bundle/config/services.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
use Symfony\AI\Agent\Toolbox\AgentProcessor as ToolProcessor;
1818
use Symfony\AI\Agent\Toolbox\Toolbox;
1919
use Symfony\AI\Agent\Toolbox\ToolboxInterface;
20+
use Symfony\AI\Agent\Toolbox\ToolCallArgumentResolver;
2021
use Symfony\AI\Agent\Toolbox\ToolFactory\ReflectionToolFactory;
2122
use Symfony\AI\Agent\Toolbox\ToolFactoryInterface;
23+
use Symfony\AI\Agent\Toolbox\ToolResultConverter;
2224
use Symfony\AI\AIBundle\Profiler\DataCollector;
2325
use Symfony\AI\AIBundle\Profiler\TraceableToolbox;
2426

@@ -51,6 +53,8 @@
5153
->alias(ToolboxInterface::class, Toolbox::class)
5254
->set(ReflectionToolFactory::class)
5355
->alias(ToolFactoryInterface::class, ReflectionToolFactory::class)
56+
->set(ToolResultConverter::class)
57+
->set(ToolCallArgumentResolver::class)
5458
->set('symfony_ai.tool.agent_processor.abstract')
5559
->class(ToolProcessor::class)
5660
->abstract()

0 commit comments

Comments
 (0)