Skip to content

Commit 08c08e6

Browse files
committed
minor #100 chore: Make tool input and output use autowired serializer (valtzu)
This PR was merged into the main branch. Discussion ---------- chore: Make tool input and output use autowired serializer | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT Cherry picking php-llm/llm-chain-bundle#104 Commits ------- 0d01636 chore: Make tool input and output use autowired serializer (#104)
2 parents 3bce875 + 0d01636 commit 08c08e6

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)