mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-13 21:29:22 +03:00
The @pre_init validator is a temporary solution for base models. It has similar (but not identical) semantics to @root_validator(), but it works strictly as a pre-init validator. It'll work as expected as long as the pydantic model type hints were correct.