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/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>
3 months ago
..
_api core[patch]: fix validation of @deprecated decorator (#22513) 3 months ago
beta core: Updated docstring for Context class (#19079) 6 months ago
callbacks [Core] Update Tracing Interops (#22318) 4 months ago
document_loaders core[minor]: Add aload to document loader (#19936) 6 months ago
documents core[patch]: Add an example to the Document schema doc-string (#23131) 3 months ago
embeddings core[patch]: Document embeddings namespace (#23132) 3 months ago
example_selectors core[patch]: Fix typo in VectorStoreExampleSelector doc-string (#21574) 4 months ago
indexing core[patch]: Expand documentation in the indexing namespace (#23134) 3 months ago
language_models core[patch]: Update documentation in LLM namespace (#23138) 3 months ago
load core[patch]: Add documentation to load namespace (#23143) 3 months ago
messages core[patch]: Document messages namespace (#23154) 3 months ago
output_parsers core[patch]: Add missing type annotations (#22756) 3 months ago
outputs core[patch]: Add doc-strings to outputs, fix @root_validator (#23190) 3 months ago
prompts core:Add optional max_messages to MessagePlaceholder (#16098) 3 months ago
pydantic_v1 multiple: get rid of pyproject extras (#22581) 4 months ago
runnables core[patch]: fix chat history circular import (#23182) 3 months ago
tracers core: in astream_events v2 always await task even if already finished (#22916) 3 months ago
utils docs: Fix URL formatting in deprecation warnings (#23075) 3 months ago
__init__.py core[patch], community[patch]: mark runnable context, lc load as beta (#15603) 9 months ago
agents.py core[patch]: Document agent schema (#23194) 3 months ago
caches.py community[minor]: Add async methods to CassandraCache and CassandraSemanticCache (#20654) 5 months ago
chat_history.py core[patch]: fix chat history circular import (#23182) 3 months ago
chat_loaders.py core[minor], community[patch], langchain[patch]: move BaseChatLoader to core (#19607) 5 months ago
chat_sessions.py docs: modules descriptions (#17844) 7 months ago
env.py core[patch]: update langchain-core runtime library name (#14884) 9 months ago
exceptions.py docs: modules descriptions (#17844) 7 months ago
globals.py core[patch]: Move `globals` to a module instead of a package (non breaking change) (#19159) 6 months ago
memory.py docs: modules descriptions (#17844) 7 months ago
prompt_values.py core[patch[: docstring update (#21036) 5 months ago
py.typed core[minor], langchain[patch], experimental[patch]: Added missing `py.typed` to `langchain_core` (#14143) 10 months ago
retrievers.py core: In BaseRetriever make get_relevant_docs delegate to invoke (#22434) 4 months ago
stores.py core[patch]: Document BaseStore (#23082) 3 months ago
structured_query.py core[patch[: docstring update (#21036) 5 months ago
sys_info.py docs: modules descriptions (#17844) 7 months ago
tools.py core[patch]: update some root_validators (#22787) 3 months ago
vectorstores.py core[patch]: update some root_validators (#22787) 3 months ago