Ask a question to get started
Enter to sendā¢Shift+Enter new line
create_model_v2( model_name: str, *, module_name: str | None = None, field_definitions:
model_name
str
The name of the model.
module_name
str | None
None
The name of the module where the model is defined.
This is used by Pydantic to resolve any forward references.
field_definitions
dict[str, Any] | None
root
Any | None
Create a Pydantic model with the given field definitions.
Do not use outside of langchain packages. This API is subject to change at any time.
The field definitions for the model.
Type for a root model (RootModel)
RootModel