Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

fix: resolve array tool arguments #368

Merged
merged 1 commit into from
Jun 30, 2025
Merged

Conversation

chr-hertel
Copy link
Member

@chr-hertel chr-hertel commented Jun 30, 2025

@valtzu any idea about this case?

found it after merging #359 with example examples/toolbox/tavily.php

patch feels a bit hacky, but does the job atm

@chr-hertel chr-hertel added the bug Something isn't working label Jun 30, 2025
@chr-hertel chr-hertel force-pushed the fix-array-tool-arguments branch from 13a82bf to f3dd191 Compare June 30, 2025 21:52
@chr-hertel chr-hertel marked this pull request as ready for review June 30, 2025 21:52
@chr-hertel chr-hertel merged commit 58186ba into main Jun 30, 2025
7 checks passed
@chr-hertel chr-hertel deleted the fix-array-tool-arguments branch June 30, 2025 21:53
@valtzu
Copy link
Contributor

valtzu commented Jul 1, 2025

Thanks! I think there is some room to improve overall this denormalization, to support object arrays and other things that Symfony normally supports. Probably would need to use typeinfo instead of raw reflection

chr-hertel added a commit to symfony/ai that referenced this pull request Jul 4, 2025
This PR was merged into the main branch.

Discussion
----------

fix: resolve array tool arguments

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Docs?         | no
| Issues        |
| License       | MIT

Cherry picking php-llm/llm-chain#368

Commits
-------

8bd22e8 fix: resolve array tool arguments (#368)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants