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.
Files changed (47) hide show
  1. pystreammcp/__init__.py +10 -2
  2. pystreammcp/_mcp_connector.py +685 -31
  3. pystreammcp/_mcp_tools.py +457 -418
  4. pystreammcp/adapters.py +18 -5
  5. pystreammcp/agent.py +63 -17
  6. pystreammcp/api.py +36 -13
  7. pystreammcp/cli.py +46 -14
  8. pystreammcp/cli_daemon.py +17 -11
  9. pystreammcp/cli_dashboard.py +28 -9
  10. pystreammcp/context.py +5 -0
  11. pystreammcp/decomposition.py +13 -3
  12. pystreammcp/discovery.py +6 -3
  13. pystreammcp/integrations/crewai.py +18 -6
  14. pystreammcp/integrations/haystack.py +25 -8
  15. pystreammcp/integrations/langchain.py +60 -23
  16. pystreammcp/integrations/langsmith.py +17 -7
  17. pystreammcp/integrations/llamaindex.py +117 -23
  18. pystreammcp/integrations/pydantic_ai.py +18 -6
  19. pystreammcp/integrations/semantic_kernel.py +25 -8
  20. pystreammcp/mcp_server.py +8 -1
  21. pystreammcp/ml/relevance.py +29 -12
  22. pystreammcp/ml/tagging.py +155 -53
  23. pystreammcp/ml.py +11 -3
  24. pystreammcp/multi_agent.py +1 -2
  25. pystreammcp/observability/metrics.py +41 -21
  26. pystreammcp/okf_core.py +32 -17
  27. pystreammcp/okf_discovery.py +70 -40
  28. pystreammcp/okf_query_planner.py +29 -13
  29. pystreammcp/optimization/advanced.py +34 -23
  30. pystreammcp/optimization/decomposition.py +6 -1
  31. pystreammcp/optimization.py +8 -1
  32. pystreammcp/orchestration/airflow.py +7 -5
  33. pystreammcp/orchestration/nocode_rpa.py +14 -7
  34. pystreammcp/qa/validator.py +56 -33
  35. pystreammcp/quality.py +72 -43
  36. pystreammcp/query.py +44 -11
  37. pystreammcp/server.py +129 -29
  38. pystreammcp/webhook_handlers.py +44 -24
  39. pystreammcp/webhook_router.py +43 -19
  40. pystreammcp-3.2.0.dist-info/METADATA +231 -0
  41. pystreammcp-3.2.0.dist-info/RECORD +54 -0
  42. {pystreammcp-3.0.0.dist-info → pystreammcp-3.2.0.dist-info}/WHEEL +1 -1
  43. pystreammcp-3.2.0.dist-info/licenses/LICENSE +22 -0
  44. pystreammcp-3.0.0.dist-info/METADATA +0 -184
  45. pystreammcp-3.0.0.dist-info/RECORD +0 -54
  46. pystreammcp-3.0.0.dist-info/licenses/LICENSE +0 -21
  47. {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.0.0"
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 OptimizationStrategy, StrategyType, OptimizationTechnique, CostMetrics
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