langchain/libs/core/langchain_core
David DeCaprio a4bcb45f65
core:Add optional max_messages to MessagePlaceholder (#16098)
- **Description:** Add optional max_messages to MessagePlaceholder
- **Issue:**
[16096](https://github.com/langchain-ai/langchain/issues/16096)
- **Dependencies:** None
- **Twitter handle:** @davedecaprio

Sometimes it's better to limit the history in the prompt itself rather
than the memory. This is needed if you want different prompts in the
chain to have different history lengths.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2024-06-19 23:39:51 +00:00
..
_api core[patch]: fix validation of @deprecated decorator (#22513) 2024-06-14 16:52:30 +00:00
beta
callbacks [Core] Update Tracing Interops (#22318) 2024-05-30 10:34:49 -07:00
document_loaders core[minor]: Add aload to document loader (#19936) 2024-04-03 10:46:47 -04:00
documents core[patch]: Add an example to the Document schema doc-string (#23131) 2024-06-19 11:35:30 -04:00
embeddings core[patch]: Document embeddings namespace (#23132) 2024-06-19 10:11:16 -04:00
example_selectors core[patch]: Fix typo in VectorStoreExampleSelector doc-string (#21574) 2024-05-14 13:31:37 +00:00
indexing core[patch]: Expand documentation in the indexing namespace (#23134) 2024-06-19 10:11:44 -04:00
language_models core[patch]: Update documentation in LLM namespace (#23138) 2024-06-19 10:10:50 -04:00
load core[patch]: Add documentation to load namespace (#23143) 2024-06-19 15:21:41 +00:00
messages core[patch]: Document messages namespace (#23154) 2024-06-19 15:00:00 -04:00
output_parsers core[patch]: Add missing type annotations (#22756) 2024-06-10 16:59:41 -04:00
outputs core[patch]: Add doc-strings to outputs, fix @root_validator (#23190) 2024-06-19 14:59:06 -04:00
prompts core:Add optional max_messages to MessagePlaceholder (#16098) 2024-06-19 23:39:51 +00:00
pydantic_v1 multiple: get rid of pyproject extras (#22581) 2024-06-06 15:45:22 -07:00
runnables core[patch]: fix chat history circular import (#23182) 2024-06-19 09:08:36 -07:00
tracers core: in astream_events v2 always await task even if already finished (#22916) 2024-06-14 19:54:20 +00:00
utils docs: Fix URL formatting in deprecation warnings (#23075) 2024-06-18 14:49:58 -04:00
__init__.py
agents.py core[patch]: Document agent schema (#23194) 2024-06-19 20:16:57 +00:00
caches.py community[minor]: Add async methods to CassandraCache and CassandraSemanticCache (#20654) 2024-04-30 10:27:44 -04:00
chat_history.py core[patch]: fix chat history circular import (#23182) 2024-06-19 09:08:36 -07:00
chat_loaders.py core[minor], community[patch], langchain[patch]: move BaseChatLoader to core (#19607) 2024-04-26 21:45:51 +00:00
chat_sessions.py
env.py
exceptions.py
globals.py
memory.py
prompt_values.py core[patch[: docstring update (#21036) 2024-04-29 15:35:34 -04:00
py.typed
retrievers.py core: In BaseRetriever make get_relevant_docs delegate to invoke (#22434) 2024-06-03 07:34:53 -07:00
stores.py core[patch]: Document BaseStore (#23082) 2024-06-18 11:47:47 -04:00
structured_query.py core[patch[: docstring update (#21036) 2024-04-29 15:35:34 -04:00
sys_info.py
tools.py core[patch]: update some root_validators (#22787) 2024-06-12 13:04:57 -04:00
vectorstores.py core[patch]: update some root_validators (#22787) 2024-06-12 13:04:57 -04:00