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/prompts
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
..
__init__.py core[minor]: Add async aformat_document method (#20037) 6 months ago
base.py core[patch]: update some root_validators (#22787) 3 months ago
chat.py core:Add optional max_messages to MessagePlaceholder (#16098) 3 months ago
few_shot.py core[patch]: Update remaining root_validators (#22829) 3 months ago
few_shot_with_templates.py core[patch]: Update remaining root_validators (#22829) 3 months ago
image.py core[patch[: docstring update (#21036) 5 months ago
loading.py core[patch]: remove requests (#19891) 6 months ago
pipeline.py core[minor]: Implement aformat_prompt and ainvoke in BasePromptTemplate (#20035) 6 months ago
prompt.py core[patch]: Update remaining root_validators (#22829) 3 months ago
string.py Include "no escape" and "inverted section" mustache vars in Prompt.input_variables and Prompt.input_schema (#22981) 3 months ago
structured.py core: add error message for non-structured llm to StructuredPrompt (#22684) 4 months ago