Skip to content

Commit 30b281a

Browse files
committed
(minor) Rename remaining "chain" into "agent"
1 parent d3e6c1b commit 30b281a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DependencyInjection/AIExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ private function processAgentConfig(string $name, array $config, ContainerBuilde
302302
// We use the memory factory in case method, description and name are set
303303
if (isset($tool['name'], $tool['description'])) {
304304
if ($tool['is_agent']) {
305-
$chainWrapperDefinition = new Definition(AgentTool::class, ['$agent' => $reference]);
306-
$container->setDefinition('symfony_ai.toolbox.'.$name.'.agent_wrapper.'.$tool['name'], $chainWrapperDefinition);
305+
$agentWrapperDefinition = new Definition(AgentTool::class, ['$agent' => $reference]);
306+
$container->setDefinition('symfony_ai.toolbox.'.$name.'.agent_wrapper.'.$tool['name'], $agentWrapperDefinition);
307307
$reference = new Reference('symfony_ai.toolbox.'.$name.'.agent_wrapper.'.$tool['name']);
308308
}
309309
$memoryFactoryDefinition->addMethodCall('addTool', [$reference, $tool['name'], $tool['description'], $tool['method'] ?? '__invoke']);

0 commit comments

Comments
 (0)