Skip to content

fix: remove llm chain remains in bundle #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/ai-bundle/src/Profiler/DataCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ final class DataCollector extends AbstractDataCollector
* @param TraceableToolbox[] $toolboxes
*/
public function __construct(
#[TaggedIterator('llm_chain.traceable_platform')]
#[TaggedIterator('symfony_ai.traceable_platform')]
iterable $platforms,
private readonly ToolboxInterface $defaultToolBox,
#[TaggedIterator('llm_chain.traceable_toolbox')]
#[TaggedIterator('symfony_ai.traceable_toolbox')]
iterable $toolboxes,
) {
$this->platforms = $platforms instanceof \Traversable ? iterator_to_array($platforms) : $platforms;
Expand All @@ -62,7 +62,7 @@ public function collect(Request $request, Response $response, ?\Throwable $excep

public static function getTemplate(): string
{
return '@LlmChain/data_collector.html.twig';
return '@AI/data_collector.html.twig';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/ai-bundle/src/Resources/config/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
->alias(ToolboxInterface::class, Toolbox::class)
->set(ReflectionToolFactory::class)
->alias(ToolFactoryInterface::class, ReflectionToolFactory::class)
->set('symfony_ai.tool.chain_processor.abstract')
->set('symfony_ai.tool.agent_processor.abstract')
->class(ToolProcessor::class)
->abstract()
->args([
'$toolbox' => abstract_arg('Toolbox'),
])
->set(ToolProcessor::class)
->parent('symfony_ai.tool.chain_processor.abstract')
->parent('symfony_ai.tool.agent_processor.abstract')
->tag('symfony_ai.agent.input_processor')
->tag('symfony_ai.agent.output_processor')
->args([
Expand Down