Skip to content
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

php-llm/llm-chain-bundle: Adjust Toolbox namespace for 0.19 #1764

Merged

Conversation

OskarStark
Copy link
Contributor

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) March 22, 2025 19:27
Copy link

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1764/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1764/index.json
  2. Install the package(s) related to this recipe:

    composer req symfony/flex
    composer req 'php-llm/llm-chain-bundle:^0.19'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

php-llm/llm-chain-bundle

0.16 vs 0.19
diff --git a/php-llm/llm-chain-bundle/0.16/config/packages/llm_chain.yaml b/php-llm/llm-chain-bundle/0.19/config/packages/llm_chain.yaml
index 71615de9..f41590e9 100644
--- a/php-llm/llm-chain-bundle/0.16/config/packages/llm_chain.yaml
+++ b/php-llm/llm-chain-bundle/0.19/config/packages/llm_chain.yaml
@@ -4,7 +4,7 @@ services:
         autowire: true
         autoconfigure: true
 
-    PhpLlm\LlmChain\Chain\ToolBox\Tool\Clock: null
+    PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock: null
 
 llm_chain:
     platform:
@@ -20,4 +20,4 @@ llm_chain:
             system_prompt: |
                 You are a helpful assistant and you can provide the current date and time.
             tools:
-                - 'PhpLlm\LlmChain\Chain\ToolBox\Tool\Clock'
+                - 'PhpLlm\LlmChain\Chain\Toolbox\Tool\Clock'

@OskarStark OskarStark changed the title php-llm/llm-chain-bundle Adjust namespace for 0.19 php-llm/llm-chain-bundle: Adjust Toolbox namespace for 0.19 Mar 22, 2025
@symfony-recipes-bot symfony-recipes-bot merged commit 7958f69 into symfony:main Mar 24, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants