mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-16 06:53:16 +00:00
community[patch]: Add missing annotations (#24890)
This PR adds annotations in comunity package. Annotations are only strictly needed in subclasses of BaseModel for pydantic 2 compatibility. This PR adds some unnecessary annotations, but they're not bad to have regardless for documentation pages.
This commit is contained in:
@@ -51,12 +51,12 @@ class ZenGuardTool(BaseTool):
|
||||
"ZenGuard AI integration package. ZenGuard AI - the fastest GenAI guardrails."
|
||||
)
|
||||
args_schema = ZenGuardInput
|
||||
return_direct = True
|
||||
return_direct: bool = True
|
||||
|
||||
zenguard_api_key: Optional[str] = Field(default=None)
|
||||
|
||||
_ZENGUARD_API_URL_ROOT = "https://api.zenguard.ai/"
|
||||
_ZENGUARD_API_KEY_ENV_NAME = "ZENGUARD_API_KEY"
|
||||
_ZENGUARD_API_URL_ROOT: str = "https://api.zenguard.ai/"
|
||||
_ZENGUARD_API_KEY_ENV_NAME: str = "ZENGUARD_API_KEY"
|
||||
|
||||
@validator("zenguard_api_key", pre=True, always=True, check_fields=False)
|
||||
def set_api_key(cls, v: str) -> str:
|
||||
|
Reference in New Issue
Block a user