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

Improve multi-turn capability for agent #1248

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

Conversation

minmin-intel
Copy link
Collaborator

Description

  1. Removed "with_store" and replaced with "memory_type". Two memory types: volatile, persistent. Volatile uses MemorySaver checkpointer, only knows thread_id, no assistant_id. Persistent uses RedisPersistence, knows assistant_id and thread_id. chat_completions APIs only supports volatile, assistants APIs support both types.
  2. Improved react_llama prompt templates and code for multi-turn conversations.
  3. Changed react_llama code to output thought process in AIMessage for UI to show to users.

Issues

#1184
#1183

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

No

Tests

Unit tests

Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Signed-off-by: minmin-intel <minmin.hou@intel.com>
@minmin-intel minmin-intel requested review from WenjiaoYue and removed request for chensuyue January 31, 2025 19:29
Signed-off-by: minmin-intel <minmin.hou@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant