pre_init#
- langchain_core.utils.pydantic.pre_init(func: Callable) Any [source]#
Decorator to run a function before model initialization.
- Parameters:
func (Callable) – The function to run before model initialization.
- Returns:
The decorated function.
- Return type:
Any