PyStreamMCP 3.0.0__py3-none-any.whl → 3.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pystreammcp/__init__.py +10 -2
- pystreammcp/_mcp_connector.py +685 -31
- pystreammcp/_mcp_tools.py +457 -418
- pystreammcp/adapters.py +18 -5
- pystreammcp/agent.py +63 -17
- pystreammcp/api.py +36 -13
- pystreammcp/cli.py +46 -14
- pystreammcp/cli_daemon.py +17 -11
- pystreammcp/cli_dashboard.py +28 -9
- pystreammcp/context.py +5 -0
- pystreammcp/decomposition.py +13 -3
- pystreammcp/discovery.py +6 -3
- pystreammcp/integrations/crewai.py +18 -6
- pystreammcp/integrations/haystack.py +25 -8
- pystreammcp/integrations/langchain.py +60 -23
- pystreammcp/integrations/langsmith.py +17 -7
- pystreammcp/integrations/llamaindex.py +117 -23
- pystreammcp/integrations/pydantic_ai.py +18 -6
- pystreammcp/integrations/semantic_kernel.py +25 -8
- pystreammcp/mcp_server.py +8 -1
- pystreammcp/ml/relevance.py +29 -12
- pystreammcp/ml/tagging.py +155 -53
- pystreammcp/ml.py +11 -3
- pystreammcp/multi_agent.py +1 -2
- pystreammcp/observability/metrics.py +41 -21
- pystreammcp/okf_core.py +32 -17
- pystreammcp/okf_discovery.py +70 -40
- pystreammcp/okf_query_planner.py +29 -13
- pystreammcp/optimization/advanced.py +34 -23
- pystreammcp/optimization/decomposition.py +6 -1
- pystreammcp/optimization.py +8 -1
- pystreammcp/orchestration/airflow.py +7 -5
- pystreammcp/orchestration/nocode_rpa.py +14 -7
- pystreammcp/qa/validator.py +56 -33
- pystreammcp/quality.py +72 -43
- pystreammcp/query.py +44 -11
- pystreammcp/server.py +129 -29
- pystreammcp/webhook_handlers.py +44 -24
- pystreammcp/webhook_router.py +43 -19
- pystreammcp-3.2.0.dist-info/METADATA +231 -0
- pystreammcp-3.2.0.dist-info/RECORD +54 -0
- {pystreammcp-3.0.0.dist-info → pystreammcp-3.2.0.dist-info}/WHEEL +1 -1
- pystreammcp-3.2.0.dist-info/licenses/LICENSE +22 -0
- pystreammcp-3.0.0.dist-info/METADATA +0 -184
- pystreammcp-3.0.0.dist-info/RECORD +0 -54
- pystreammcp-3.0.0.dist-info/licenses/LICENSE +0 -21
- {pystreammcp-3.0.0.dist-info → pystreammcp-3.2.0.dist-info}/top_level.txt +0 -0
pystreammcp/__init__.py
CHANGED
|
@@ -7,19 +7,26 @@ Reduces token usage by 60-75% while maintaining quality.
|
|
|
7
7
|
Includes StatGuardian integration for data quality validation.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
-
__version__ = "3.
|
|
10
|
+
__version__ = "3.2.0"
|
|
11
11
|
|
|
12
12
|
from .agent import Agent, QueryResult
|
|
13
13
|
from .query import Query, QueryIntent, QueryConstraints
|
|
14
14
|
from .context import Context, ContextType, ContextWindow
|
|
15
15
|
from .discovery import Discovery, DiscoveredSource, SourceType
|
|
16
|
+
|
|
16
17
|
# Optimization imports
|
|
17
18
|
try:
|
|
18
|
-
from .optimization import
|
|
19
|
+
from .optimization import (
|
|
20
|
+
OptimizationStrategy,
|
|
21
|
+
StrategyType,
|
|
22
|
+
OptimizationTechnique,
|
|
23
|
+
CostMetrics,
|
|
24
|
+
)
|
|
19
25
|
except (ImportError, AttributeError):
|
|
20
26
|
# Fallback: Phase 3+ uses new optimization module structure
|
|
21
27
|
try:
|
|
22
28
|
from .optimization import StrategyType, OptimizationTechnique
|
|
29
|
+
|
|
23
30
|
OptimizationStrategy = None
|
|
24
31
|
CostMetrics = None
|
|
25
32
|
except (ImportError, AttributeError):
|
|
@@ -43,6 +50,7 @@ from .adapters import (
|
|
|
43
50
|
FrameworkType,
|
|
44
51
|
QueryResult as AdapterQueryResult,
|
|
45
52
|
)
|
|
53
|
+
|
|
46
54
|
# Optional: MCP and API servers (require additional dependencies)
|
|
47
55
|
try:
|
|
48
56
|
from .mcp_server import PyStreamMCPServer
|