Skip to content

feat(agent):Agent supports conversation context#2230

Merged
fangyinc merged 2 commits into
mainfrom
agent_history_message
Dec 20, 2024
Merged

feat(agent):Agent supports conversation context#2230
fangyinc merged 2 commits into
mainfrom
agent_history_message

Conversation

@yhjun1026
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@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+

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