langchain.tools.nuclia.tool.NUASchema¶
class langchain.tools.nuclia.tool.NUASchema[source]¶
Bases: BaseModel
Input for Nuclia Understanding API.
action¶
Action to perform. Either push or pull.
id¶
ID of the file to push or pull.
path¶
Path to the file to push (needed only for push action).
text¶
Text content to process (needed only for push action).
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 action: str [Required]¶
Action to perform. Either push or pull.
param id: str [Required]¶
ID of the file to push or pull.
param path: Optional[str] [Required]¶
Path to the file to push (needed only for push action).
param text: Optional[str] [Required]¶
Text content to process (needed only for push action).
classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶
Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data.
Default values are respected, but no other validation is performed.
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values
copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶
Duplicate a model, optionally choose which fields to include, exclude and change.
Parameters
include – fields to include in new model