mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 22:37:46 +00:00
experimental: docstrings update (#18048)
Added missed docstrings. Formatted docsctrings to the consistent format.
This commit is contained in:
@@ -13,6 +13,8 @@ from langchain_experimental.comprehend_moderation.toxicity import ComprehendToxi
|
||||
|
||||
|
||||
class BaseModeration:
|
||||
"""Base class for moderation."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
client: Any,
|
||||
@@ -109,6 +111,8 @@ class BaseModeration:
|
||||
self.run_manager.on_text(message)
|
||||
|
||||
def moderate(self, prompt: Any) -> str:
|
||||
"""Moderate the input prompt."""
|
||||
|
||||
from langchain_experimental.comprehend_moderation.base_moderation_config import ( # noqa: E501
|
||||
ModerationPiiConfig,
|
||||
ModerationPromptSafetyConfig,
|
||||
|
Reference in New Issue
Block a user