test_chat_valid_with_partial_variables() — langchain Function Reference
Architecture documentation for the test_chat_valid_with_partial_variables() function in test_chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD fe08f0a8_771f_05ba_04dd_77a52aaf2621["test_chat_valid_with_partial_variables()"] 00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117["test_chat.py"] fe08f0a8_771f_05ba_04dd_77a52aaf2621 -->|defined in| 00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117 style fe08f0a8_771f_05ba_04dd_77a52aaf2621 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_chat.py lines 707–719
def test_chat_valid_with_partial_variables() -> None:
messages = [
HumanMessagePromptTemplate.from_template(
"Do something with {question} using {context} giving it like {formatins}"
)
]
prompt = ChatPromptTemplate(
messages=messages,
input_variables=["question", "context"],
partial_variables={"formatins": "some structure"},
)
assert set(prompt.input_variables) == {"question", "context"}
assert prompt.partial_variables == {"formatins": "some structure"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_chat_valid_with_partial_variables() do?
test_chat_valid_with_partial_variables() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_chat.py.
Where is test_chat_valid_with_partial_variables() defined?
test_chat_valid_with_partial_variables() is defined in libs/core/tests/unit_tests/prompts/test_chat.py at line 707.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free