langchain.tools.openapi.utils.api_models.APIPropertyBase¶
- class langchain.tools.openapi.utils.api_models.APIPropertyBase(*, name: str, required: bool, type: Union[str, Type, tuple, None, Enum] = None, default: Optional[Any] = None, description: Optional[str] = None)[source]¶
Bases:
BaseModelBase model for an API property.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- param default: Optional[Any] = None¶
The default value of the property.
- param description: Optional[str] = None¶
The description of the property.
- param name: str [Required]¶
The name of the property.
- param required: bool [Required]¶
Whether the property is required.
- param type: Union[str, Type, tuple, None, enum.Enum] = None¶
The type of the property.
Either a primitive type, a component/parameter type, or an array or ‘object’ (dict) of the above.