mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
fix: deprecate You.com and Jira connectors in core in favour of PraisonAI-Tools (fixes #6168) (#6169)
Co-authored-by: MervinPraison <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2 files changed
+18
No files matched your search
@@ -7,6 +7,15 @@ from datetime import datetime
|
||||
from typing import Dict, List, Optional, Any
|
||||
from .decorator import tool
|
||||
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"praisonaiagents.tools.jira_tools is deprecated and will be removed in a future release; "
|
||||
"use praisonai_tools.tools.jira_watch_tool instead (pip install praisonai-tools)",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
def _get_jira_connection(
|
||||
|
||||
@@ -26,6 +26,15 @@ import logging
|
||||
import os
|
||||
from importlib import util
|
||||
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"praisonaiagents.tools.youdotcom_tools is deprecated and will be removed in a future release; "
|
||||
"use praisonai_tools.tools.youdotcom_tool instead (pip install praisonai-tools)",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
|
||||
|
||||
def _check_youdotcom_available() -> tuple[bool, Optional[str]]:
|
||||
"""Check if You.com SDK is available and API key is set.
|
||||
|
||||
Reference in new issue
Block a user