Skip to content

feat: add option to keep tool messages #323

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

Conversation

philipheimboeck
Copy link
Contributor

Adds an option to the Toolbox/ChainProcessor to keep tool messages by avoiding to clone the original messageBag

Fixes #321

@philipheimboeck philipheimboeck force-pushed the philip/feat-keep-tool-messages branch from bbd5a85 to 41a01a3 Compare May 23, 2025 10:05
Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementation looks good - only smaller things on docs & tests

@philipheimboeck philipheimboeck force-pushed the philip/feat-keep-tool-messages branch from 41a01a3 to f1060b7 Compare June 2, 2025 06:59
@philipheimboeck
Copy link
Contributor Author

I rebased the whole thing as meanwhile the namespaces changed and applied your suggestions.

Copy link
Member

@chr-hertel chr-hertel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @philipheimboeck! Great first contribution!

@chr-hertel
Copy link
Member

I'll take care of the PHPUnit issue after merging, it's a PHPUnit bug.

@chr-hertel chr-hertel merged commit 0fe079c into php-llm:main Jun 6, 2025
0 of 21 checks passed
chr-hertel added a commit that referenced this pull request Jun 6, 2025
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.

Tool Calling messages are lost in cloned MessageBag
2 participants