You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/langchain/memory
Shu 46782ad79b
Fixed an unhandled error that was raised when DynamoDB did not have any chat history. (#6141)
<!--
Thank you for contributing to LangChain! Your PR will appear in our
release under the title you set. Please make sure it highlights your
valuable contribution.



After you're done, someone will review your PR. They may suggest
improvements. If no one reviews your PR within a few days, feel free to
@-mention the same people again, as notifications can get lost.

Finally, we'd love to show appreciation for your contribution - if you'd
like us to shout you out on Twitter, please also include your handle!
-->

The current version of chat history with DynamoDB doesn't handle the
case correctly when a table has no chat history. This change solves this
error handling.

<!-- Remove if not applicable -->

Fixes https://github.com/hwchase17/langchain/issues/6088

#### Who can review?

Tag maintainers/contributors who might be interested:

@hwchase17

<!-- For a quicker response, figure out the right person to tag with @

  @hwchase17 - project lead

  Tracing / Callbacks
  - @agola11

  Async
  - @agola11

  DataLoaders
  - @eyurtsev

  Models
  - @hwchase17
  - @agola11

  Agents / Tools / Toolkits
  - @hwchase17

  VectorStores / Retrievers / Memory
  - @dev2049

 -->
12 months ago
..
chat_message_histories Fixed an unhandled error that was raised when DynamoDB did not have any chat history. (#6141) 12 months ago
__init__.py Fix class promotion (#6187) 12 months ago
buffer.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
buffer_window.py Fixed k=0 bug on ConversationBufferWindowMemory (#2796) 1 year ago
chat_memory.py Harrison/motorhead (#2599) 1 year ago
combined.py add warning for combined memory (#4688) 1 year ago
entity.py Better Entity Memory code documentation (#6318) 12 months ago
kg.py Callbacks Refactor [base] (#3256) 1 year ago
motorhead_memory.py Handle Managed Motorhead Data Key (#6169) 12 months ago
prompt.py Solve small bug in the kg prompt (#1988) 1 year ago
readonly.py Add read only shared memory (#1491) 1 year ago
simple.py Removed duplicate BaseModel dependencies (#2471) 1 year ago
summary.py Harrison/summary memory history (#4649) 1 year ago
summary_buffer.py feat: prune summary buffer (#4004) 1 year ago
token_buffer.py Callbacks Refactor [base] (#3256) 1 year ago
utils.py Harrison/official method (#1728) 1 year ago
vectorstore.py Harrison/retriever memory (#2804) 1 year ago