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

[Feature] add learnable agent #4

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

Conversation

rayrayraykk
Copy link
Collaborator

Class Description

The LearnableAgent class extends AgentBase and implements abstract base class (ABC) functionalities, serving as the core for creating agents capable of learning from textual interactions.

Key components of the LearnableAgent class include:

  • reply: A method to be implemented by derived agents, allowing for customized response mechanisms.
  • learn_from_chat: Processes messages from the agent's memory to learn and assess their value for knowledge preservation.
  • archive_valuable_msg: Determines whether a message contains valuable knowledge and, if so, extracts a summary and stores it in the knowledge base.

DavdGao pushed a commit to DavdGao/AgentScope that referenced this pull request Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant