get_pydantic_model
- input_data (Union[str, type, Callable]): - If a string is provided, it should be a JSON-encoded string that will be converted into a BaseModel. - If a function is provided, it will be decorated such that its arguments are converted into a BaseModel. - If a BaseModel class is provided, it will be returned directly.
model_from_json_schema
- name (str): The name of the model.
- schema (Dict[str, Any]): The JSON schema to create the model from.