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/tests/unit_tests/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 Separate out langchain_core package (#13577) 10 months ago
prompt_extra_args.json Separate out langchain_core package (#13577) 10 months ago
prompt_missing_args.json Separate out langchain_core package (#13577) 10 months ago
simple_prompt.json Separate out langchain_core package (#13577) 10 months ago
test_chat.py core:Add optional max_messages to MessagePlaceholder (#16098) 3 months ago
test_few_shot.py core[minor]: Add aformat to FewShotPromptTemplate (#19652) 6 months ago
test_few_shot_with_templates.py core[minor]: Implement aformat for FewShotPromptWithTemplates (#20039) 6 months ago
test_image.py Fix loading of ImagePromptTemplate (#16868) 8 months ago
test_imports.py core[minor]: Add async aformat_document method (#20037) 6 months ago
test_loading.py infra: absolute `EXAMPLE_DIR` path in core unit tests (#16325) 8 months ago
test_pipeline_prompt.py core[minor]: Implement aformat_prompt and ainvoke in BasePromptTemplate (#20035) 6 months ago
test_prompt.py Include "no escape" and "inverted section" mustache vars in Prompt.input_variables and Prompt.input_schema (#22981) 3 months ago
test_structured.py core[patch]: fix beta, deprecated typing (#18877) 6 months ago
test_utils.py REFACTOR: Refactor langchain_core (#13627) 10 months ago