param callbacks: Callbacks = None¶
Callbacks to be called during tool execution.
param description: str = "A wrapper around edenai Services explicit content detection for text. Useful for when you have to scan text for offensive, \n        sexually explicit or suggestive content,\n        it checks also if there is any content of self-harm,\n        violence, racist or hate speech.the structure of the output is : \n        'the type of the explicit content : the likelihood of it being explicit'\n        the likelihood is a number \n        between 1 and 5, 1 being the lowest and 5 the highest.\n        something is explicit if the likelihood is equal or higher than 3.\n        for example : \n        nsfw_likelihood: 1\n        this is not explicit.\n        for example : \n        nsfw_likelihood: 3\n        this is explicit.\n        Input should be a string."¶
Used to tell the model how/when/why to use the tool.
You can provide few-shot examples as a part of the description.
param edenai_api_key: Optional[str] = None¶
param feature: str = 'text'¶
param handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False¶
Handle the content of the ToolException thrown.
param is_async: bool = False¶
param language: str [Required]¶
param metadata: Optional[Dict[str, Any]] = None¶
Optional metadata associated with the tool. Defaults to None
This metadata will be associated with each call to this tool,
and passed as arguments to the handlers defined in callbacks.
You can use these to eg identify a specific instance of a tool with its use case.
param name: str = 'edenai_explicit_content_detection_text'¶