test_rendering_prompt_with_conditionals_no_empty_text_blocks() — langchain Function Reference
Architecture documentation for the test_rendering_prompt_with_conditionals_no_empty_text_blocks() function in test_chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 222a10bb_a3c7_abc9_632d_d6fe5347729d["test_rendering_prompt_with_conditionals_no_empty_text_blocks()"] 00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117["test_chat.py"] 222a10bb_a3c7_abc9_632d_d6fe5347729d -->|defined in| 00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117 style 222a10bb_a3c7_abc9_632d_d6fe5347729d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_chat.py lines 1474–1889
def test_rendering_prompt_with_conditionals_no_empty_text_blocks() -> None:
manifest = {
"lc": 1,
"type": "constructor",
"id": ["langchain_core", "prompts", "chat", "ChatPromptTemplate"],
"kwargs": {
"messages": [
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"prompts",
"chat",
"SystemMessagePromptTemplate",
],
"kwargs": {
"prompt": {
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"prompts",
"prompt",
"PromptTemplate",
],
"kwargs": {
"input_variables": [],
"template_format": "mustache",
"template": "Always echo back whatever I send you.",
},
},
},
},
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"prompts",
"chat",
"HumanMessagePromptTemplate",
],
"kwargs": {
"prompt": [
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"prompts",
"prompt",
"PromptTemplate",
],
"kwargs": {
"input_variables": [],
"template_format": "mustache",
"template": "Here is the teacher's prompt:",
"additional_content_fields": {
"text": "Here is the teacher's prompt:",
},
},
},
{
"lc": 1,
"type": "constructor",
"id": [
"langchain_core",
"prompts",
"prompt",
"PromptTemplate",
],
"kwargs": {
"input_variables": ["promptDescription"],
"template_format": "mustache",
"template": '"{{promptDescription}}"\n',
"additional_content_fields": {
"text": '"{{promptDescription}}"\n',
},
},
},
Domain
Subdomains
Source
Frequently Asked Questions
What does test_rendering_prompt_with_conditionals_no_empty_text_blocks() do?
test_rendering_prompt_with_conditionals_no_empty_text_blocks() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_chat.py.
Where is test_rendering_prompt_with_conditionals_no_empty_text_blocks() defined?
test_rendering_prompt_with_conditionals_no_empty_text_blocks() is defined in libs/core/tests/unit_tests/prompts/test_chat.py at line 1474.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free