Skip to content

Fix: concatenate all text parts in last_event.content.parts #618

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

TP9-dev
Copy link

@TP9-dev TP9-dev commented May 8, 2025

Previously, only the first part's text was returned, causing incomplete tool outputs when multiple parts were present. Now, all parts' texts are joined with newlines to ensure complete responses.

Related to: #606

Previously, only the first part's text was returned, causing incomplete tool outputs when multiple parts were present. Now, all parts' texts are joined with newlines to ensure complete responses.
@DeanChensj DeanChensj requested a review from seanzhou1023 May 8, 2025 21:56
@DeanChensj DeanChensj added the tools Issues related to tools label May 8, 2025
@wuliang229 wuliang229 self-requested a review May 13, 2025 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools Issues related to tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants