[PR #1453] [MERGED] Update short-term-memory.mdx #1580

Closed
opened 2026-02-17 17:22:30 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1453
Author: @evgeny-deriglazov
Created: 11/16/2025
Status: Merged
Merged: 11/17/2025
Merged by: @lnhsingh

Base: mainHead: patch-2


📝 Commits (1)

  • f9b8715 Update short-term-memory.mdx

📊 Changes

1 file changed (+11 additions, -2 deletions)

View changed files

📝 src/oss/langchain/short-term-memory.mdx (+11 -2)

📄 Description

Overview

Hi!
I found unsafe TypedDict operation on LangChain "Memory - Tools - Write short-term memory from tools" docs code example. Some small models run the code example with KeyError: user_name.

Type of change

I propose more robust decision in the code example to prevent users confusion who try to reuse and run code examples with small models.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/1453 **Author:** [@evgeny-deriglazov](https://github.com/evgeny-deriglazov) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/17/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`f9b8715`](https://github.com/langchain-ai/docs/commit/f9b87153d2918c8c2ad319c95b4fc984fb8fe757) Update short-term-memory.mdx ### 📊 Changes **1 file changed** (+11 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/short-term-memory.mdx` (+11 -2) </details> ### 📄 Description ## Overview Hi! I found unsafe TypedDict operation on LangChain "Memory - Tools - Write short-term memory from tools" docs code example. Some small models run the code example with `KeyError: user_name`. ## Type of change I propose more robust decision in the code example to prevent users confusion who try to reuse and run code examples with small models. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-17 17:22:30 -05:00
yindo closed this issue 2026-02-17 17:22:30 -05:00
yindo changed title from [PR #1453] Update short-term-memory.mdx to [PR #1453] [MERGED] Update short-term-memory.mdx 2026-06-05 18:13:46 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1580