Ask a question to get started
Enter to sendā¢Shift+Enter new line
create_model( model_name: str, *, field_definitions: dict[str, Any] | None
model_name
str
The name of the model.
module_name
unknown
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
None
The field definitions for the model.
root
Any | None
Create a pydantic model with the given field definitions.
Attention:
Please do not use outside of langchain packages. This API is subject to change at any time.
Type for a root model (RootModel)