diff --git a/composer.json b/composer.json index 75b619a..43e3db1 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ ], "require": { "php": ">=8.2", - "php-llm/llm-chain": "^0.17", + "php-llm/llm-chain": "^0.18", "symfony/config": "^6.4 || ^7.0", "symfony/dependency-injection": "^6.4 || ^7.0", "symfony/framework-bundle": "^6.4 || ^7.0", diff --git a/src/Resources/config/services.php b/src/Resources/config/services.php index 801ff6d..19052b6 100644 --- a/src/Resources/config/services.php +++ b/src/Resources/config/services.php @@ -8,7 +8,8 @@ use PhpLlm\LlmChain\Chain\StructuredOutput\ResponseFormatFactory; use PhpLlm\LlmChain\Chain\StructuredOutput\ResponseFormatFactoryInterface; use PhpLlm\LlmChain\Chain\ToolBox\ChainProcessor as ToolProcessor; -use PhpLlm\LlmChain\Chain\ToolBox\ToolAnalyzer; +use PhpLlm\LlmChain\Chain\ToolBox\MetadataFactory; +use PhpLlm\LlmChain\Chain\ToolBox\MetadataFactory\ReflectionFactory; use PhpLlm\LlmChain\Chain\ToolBox\ToolBox; use PhpLlm\LlmChain\Chain\ToolBox\ToolBoxInterface; use PhpLlm\LlmChain\Embedder; @@ -48,7 +49,8 @@ '$tools' => tagged_iterator('llm_chain.tool'), ]) ->alias(ToolBoxInterface::class, ToolBox::class) - ->set(ToolAnalyzer::class) + ->set(ReflectionFactory::class) + ->alias(MetadataFactory::class, ReflectionFactory::class) ->set('llm_chain.tool.chain_processor.abstract') ->class(ToolProcessor::class) ->abstract() diff --git a/src/Resources/views/data_collector.html.twig b/src/Resources/views/data_collector.html.twig index a5d0235..ac7183c 100644 --- a/src/Resources/views/data_collector.html.twig +++ b/src/Resources/views/data_collector.html.twig @@ -126,7 +126,7 @@ {% endfor %} {% else %} - {{ call.input }} + {{ dump(call.input) }} {% endif %}