From 88cb206b007e1237023d5fc3deb6f6aa75b23e07 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Fri, 14 Mar 2025 00:32:32 +0100 Subject: [PATCH] chore: lib update --- composer.json | 2 +- src/Resources/config/services.php | 6 ++++-- src/Resources/views/data_collector.html.twig | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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 %}