Skip to content

Conversation

@HQidea
Copy link
Contributor

@HQidea HQidea commented Oct 22, 2025

This pr fixes:

  • Variable scope: The assistant_content variable was declared outside the message processing loop, causing content accumulation across multiple messages
  • Message ordering: Assistant messages were being stored after tool results, which violates the correct conversation flow where assistant messages should come before tool results

@RobertCraigie RobertCraigie changed the base branch from main to next November 18, 2025 11:21
@RobertCraigie RobertCraigie changed the title fix: properly add assistant_content to messages fix(examples/memory): properly add assistant_content to messages Nov 18, 2025
@RobertCraigie RobertCraigie merged commit 7720d1d into anthropics:next Nov 18, 2025
4 checks passed
@stainless-app stainless-app bot mentioned this pull request Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants