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

feat(agent):Agent supports conversation context #2230

Merged
merged 2 commits into from
Dec 20, 2024
Merged

Conversation

yhjun1026
Copy link
Collaborator

@yhjun1026 yhjun1026 commented Dec 20, 2024

Description

Closes #2219
Closes #2206

Agent supports conversation context historical message.

How Has This Been Tested?

Use directly in Agent application conversations.

Modify the following env configuration properties to adjust the range:

The agent historical message retention configuration defaults to the last two rounds.

MESSAGES_KEEP_START_ROUNDS=0
MESSAGES_KEEP_END_ROUNDS=2

Snapshots:

Include snapshots for easier review.

Checklist:

  • My code follows the style guidelines of this project
  • I have already rebased the commits and make the commit message conform to the project standard.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules

@github-actions github-actions bot added agent Module: agent enhancement New feature or request labels Dec 20, 2024
Copy link
Collaborator

@Aries-ckt Aries-ckt left a comment

Choose a reason for hiding this comment

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

r+

@fangyinc fangyinc changed the title feat(agent):Agent supports conversation context historical message me… feat(agent):Agent supports conversation context Dec 20, 2024
Copy link
Collaborator

@fangyinc fangyinc left a comment

Choose a reason for hiding this comment

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

r+

@fangyinc fangyinc merged commit 2b4597e into main Dec 20, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent Module: agent enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [Module Name] Poor context memory. [Bug] [Module Name] Agent add conversation history context.
3 participants