aiecs 1.1.1__tar.gz → 1.2.1__tar.gz

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.

Potentially problematic release.


This version of aiecs might be problematic. Click here for more details.

Files changed (156) hide show
  1. {aiecs-1.1.1/aiecs.egg-info → aiecs-1.2.1}/PKG-INFO +5 -1
  2. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/__init__.py +1 -1
  3. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/aiecs_client.py +1 -1
  4. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/config/config.py +38 -0
  5. aiecs-1.2.1/aiecs/domain/__init__.py +130 -0
  6. aiecs-1.2.1/aiecs/domain/community/__init__.py +159 -0
  7. aiecs-1.2.1/aiecs/domain/community/agent_adapter.py +516 -0
  8. aiecs-1.2.1/aiecs/domain/community/analytics.py +465 -0
  9. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/community/collaborative_workflow.py +99 -7
  10. aiecs-1.2.1/aiecs/domain/community/communication_hub.py +649 -0
  11. aiecs-1.2.1/aiecs/domain/community/community_builder.py +322 -0
  12. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/community/community_integration.py +365 -12
  13. aiecs-1.2.1/aiecs/domain/community/community_manager.py +813 -0
  14. aiecs-1.2.1/aiecs/domain/community/decision_engine.py +800 -0
  15. aiecs-1.2.1/aiecs/domain/community/exceptions.py +238 -0
  16. aiecs-1.2.1/aiecs/domain/community/models/__init__.py +36 -0
  17. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/community/resource_manager.py +1 -1
  18. aiecs-1.2.1/aiecs/domain/community/shared_context_manager.py +621 -0
  19. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/context/context_engine.py +37 -33
  20. aiecs-1.2.1/aiecs/infrastructure/monitoring/__init__.py +34 -0
  21. aiecs-1.2.1/aiecs/infrastructure/monitoring/global_metrics_manager.py +207 -0
  22. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/persistence/file_storage.py +41 -28
  23. aiecs-1.2.1/aiecs/llm/__init__.py +93 -0
  24. aiecs-1.2.1/aiecs/llm/callbacks/__init__.py +12 -0
  25. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/callbacks}/custom_callbacks.py +1 -1
  26. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/llm/client_factory.py +23 -6
  27. aiecs-1.2.1/aiecs/llm/clients/__init__.py +35 -0
  28. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/clients}/base_client.py +73 -1
  29. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/clients}/googleai_client.py +19 -15
  30. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/clients}/openai_client.py +9 -14
  31. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/clients}/vertex_client.py +15 -15
  32. {aiecs-1.1.1/aiecs/llm → aiecs-1.2.1/aiecs/llm/clients}/xai_client.py +36 -50
  33. aiecs-1.2.1/aiecs/llm/config/__init__.py +54 -0
  34. aiecs-1.2.1/aiecs/llm/config/config_loader.py +275 -0
  35. aiecs-1.2.1/aiecs/llm/config/config_validator.py +237 -0
  36. aiecs-1.2.1/aiecs/llm/config/model_config.py +132 -0
  37. aiecs-1.2.1/aiecs/llm/utils/__init__.py +11 -0
  38. aiecs-1.2.1/aiecs/llm/utils/validate_config.py +91 -0
  39. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/main.py +32 -2
  40. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/download_nlp_data.py +1 -0
  41. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/ai_document_orchestrator.py +39 -26
  42. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/ai_document_writer_orchestrator.py +61 -38
  43. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/content_insertion_tool.py +48 -28
  44. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/document_creator_tool.py +47 -29
  45. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/document_layout_tool.py +35 -20
  46. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/document_parser_tool.py +56 -36
  47. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/document_writer_tool.py +115 -62
  48. aiecs-1.2.1/aiecs/tools/statistics/__init__.py +82 -0
  49. aiecs-1.2.1/aiecs/tools/statistics/ai_data_analysis_orchestrator.py +581 -0
  50. aiecs-1.2.1/aiecs/tools/statistics/ai_insight_generator_tool.py +473 -0
  51. aiecs-1.2.1/aiecs/tools/statistics/ai_report_orchestrator_tool.py +629 -0
  52. aiecs-1.2.1/aiecs/tools/statistics/data_loader_tool.py +518 -0
  53. aiecs-1.2.1/aiecs/tools/statistics/data_profiler_tool.py +599 -0
  54. aiecs-1.2.1/aiecs/tools/statistics/data_transformer_tool.py +531 -0
  55. aiecs-1.2.1/aiecs/tools/statistics/data_visualizer_tool.py +460 -0
  56. aiecs-1.2.1/aiecs/tools/statistics/model_trainer_tool.py +470 -0
  57. aiecs-1.2.1/aiecs/tools/statistics/statistical_analyzer_tool.py +426 -0
  58. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/chart_tool.py +2 -1
  59. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/image_tool.py +43 -43
  60. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/office_tool.py +39 -36
  61. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/pandas_tool.py +37 -33
  62. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/report_tool.py +67 -56
  63. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/research_tool.py +32 -31
  64. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/scraper_tool.py +53 -46
  65. aiecs-1.2.1/aiecs/tools/task_tools/search_tool.py +1123 -0
  66. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/stats_tool.py +20 -15
  67. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/tool_executor/__init__.py +2 -2
  68. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/tool_executor/tool_executor.py +3 -3
  69. {aiecs-1.1.1 → aiecs-1.2.1/aiecs.egg-info}/PKG-INFO +5 -1
  70. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs.egg-info/SOURCES.txt +34 -7
  71. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs.egg-info/requires.txt +4 -0
  72. {aiecs-1.1.1 → aiecs-1.2.1}/pyproject.toml +12 -1
  73. aiecs-1.1.1/aiecs/domain/__init__.py +0 -35
  74. aiecs-1.1.1/aiecs/domain/community/community_manager.py +0 -337
  75. aiecs-1.1.1/aiecs/domain/community/decision_engine.py +0 -354
  76. aiecs-1.1.1/aiecs/infrastructure/monitoring/__init__.py +0 -12
  77. aiecs-1.1.1/aiecs/llm/__init__.py +0 -56
  78. aiecs-1.1.1/aiecs/tools/task_tools/search_api.py +0 -7
  79. {aiecs-1.1.1 → aiecs-1.2.1}/LICENSE +0 -0
  80. {aiecs-1.1.1 → aiecs-1.2.1}/MANIFEST.in +0 -0
  81. {aiecs-1.1.1 → aiecs-1.2.1}/README.md +0 -0
  82. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/__main__.py +0 -0
  83. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/application/__init__.py +0 -0
  84. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/application/executors/__init__.py +0 -0
  85. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/application/executors/operation_executor.py +0 -0
  86. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/config/__init__.py +0 -0
  87. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/config/registry.py +0 -0
  88. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/core/__init__.py +0 -0
  89. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/core/interface/__init__.py +0 -0
  90. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/core/interface/execution_interface.py +0 -0
  91. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/core/interface/storage_interface.py +0 -0
  92. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/community/models/community_models.py +0 -0
  93. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/context/__init__.py +0 -0
  94. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/context/conversation_models.py +0 -0
  95. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/execution/__init__.py +0 -0
  96. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/execution/model.py +0 -0
  97. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/task/__init__.py +0 -0
  98. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/task/dsl_processor.py +0 -0
  99. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/task/model.py +0 -0
  100. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/domain/task/task_context.py +0 -0
  101. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/__init__.py +0 -0
  102. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/messaging/__init__.py +0 -0
  103. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/messaging/celery_task_manager.py +0 -0
  104. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/messaging/websocket_manager.py +0 -0
  105. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/monitoring/executor_metrics.py +0 -0
  106. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/monitoring/structured_logger.py +0 -0
  107. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/monitoring/tracing_manager.py +0 -0
  108. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/persistence/__init__.py +0 -0
  109. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/persistence/context_engine_client.py +0 -0
  110. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/persistence/database_manager.py +0 -0
  111. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/infrastructure/persistence/redis_client.py +0 -0
  112. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/__init__.py +0 -0
  113. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/aid/VERSION_MANAGEMENT.md +0 -0
  114. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/aid/__init__.py +0 -0
  115. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/aid/version_manager.py +0 -0
  116. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/DEPENDENCY_SYSTEM_SUMMARY.md +0 -0
  117. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/README_DEPENDENCY_CHECKER.md +0 -0
  118. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/__init__.py +0 -0
  119. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/dependency_checker.py +0 -0
  120. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/dependency_fixer.py +0 -0
  121. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/quick_dependency_check.py +0 -0
  122. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_check/setup_nlp_data.sh +0 -0
  123. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/__init__.py +0 -0
  124. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/README_WEASEL_PATCH.md +0 -0
  125. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/__init__.py +0 -0
  126. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.py +0 -0
  127. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.sh +0 -0
  128. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/patch_weasel_library.sh +0 -0
  129. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/dependance_patch/fix_weasel/run_weasel_patch.sh +0 -0
  130. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/tools_develop/README.md +0 -0
  131. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/tools_develop/__init__.py +0 -0
  132. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/tools_develop/check_type_annotations.py +0 -0
  133. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/scripts/tools_develop/validate_tool_schemas.py +0 -0
  134. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tasks/__init__.py +0 -0
  135. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tasks/worker.py +0 -0
  136. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/__init__.py +0 -0
  137. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/base_tool.py +0 -0
  138. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/docs/__init__.py +0 -0
  139. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/langchain_adapter.py +0 -0
  140. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/schema_generator.py +0 -0
  141. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/__init__.py +0 -0
  142. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/task_tools/classfire_tool.py +0 -0
  143. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/tools/temp_file_manager.py +0 -0
  144. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/LLM_output_structor.py +0 -0
  145. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/__init__.py +0 -0
  146. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/base_callback.py +0 -0
  147. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/execution_utils.py +0 -0
  148. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/logging.py +0 -0
  149. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/prompt_loader.py +0 -0
  150. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/utils/token_usage_repository.py +0 -0
  151. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/ws/__init__.py +0 -0
  152. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs/ws/socket_server.py +0 -0
  153. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs.egg-info/dependency_links.txt +0 -0
  154. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs.egg-info/entry_points.txt +0 -0
  155. {aiecs-1.1.1 → aiecs-1.2.1}/aiecs.egg-info/top_level.txt +0 -0
  156. {aiecs-1.1.1 → aiecs-1.2.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiecs
3
- Version: 1.1.1
3
+ Version: 1.2.1
4
4
  Summary: AI Execute Services - A middleware framework for AI-powered task execution and tool orchestration
5
5
  Author-email: AIECS Team <iretbl@gmail.com>
6
6
  License-Expression: MIT
@@ -39,6 +39,10 @@ Requires-Dist: flower<3.0.0,>=2.0.1
39
39
  Requires-Dist: openai<1.76.0,>=1.68.2
40
40
  Requires-Dist: google-cloud-aiplatform<2.0.0,>=1.80.0
41
41
  Requires-Dist: google-generativeai<1.0.0,>=0.8.0
42
+ Requires-Dist: google-api-python-client<3.0.0,>=2.108.0
43
+ Requires-Dist: google-auth<3.0.0,>=2.25.0
44
+ Requires-Dist: google-auth-httplib2<1.0.0,>=0.2.0
45
+ Requires-Dist: google-auth-oauthlib<2.0.0,>=1.2.0
42
46
  Requires-Dist: langchain<0.4.0,>=0.3.26
43
47
  Requires-Dist: langgraph<0.6.0,>=0.5.3
44
48
  Requires-Dist: weasel==0.4.1
@@ -5,7 +5,7 @@ A powerful Python middleware framework for building AI-powered applications
5
5
  with tool orchestration, task execution, and multi-provider LLM support.
6
6
  """
7
7
 
8
- __version__ = "1.1.1"
8
+ __version__ = "1.2.1"
9
9
  __author__ = "AIECS Team"
10
10
  __email__ = "iretbl@gmail.com"
11
11
 
@@ -12,7 +12,7 @@ from aiecs.config.config import get_settings, validate_required_settings
12
12
  from aiecs.domain.task.task_context import TaskContext
13
13
  from aiecs.tools import discover_tools, list_tools, get_tool
14
14
  from aiecs.llm.client_factory import LLMClientFactory, LLMClientManager, AIProvider
15
- from aiecs.llm.base_client import LLMMessage
15
+ from aiecs.llm.clients.base_client import LLMMessage
16
16
 
17
17
  logger = logging.getLogger(__name__)
18
18
 
@@ -1,6 +1,7 @@
1
1
  from pydantic import Field, ConfigDict
2
2
  from pydantic_settings import BaseSettings
3
3
  from functools import lru_cache
4
+ from pathlib import Path
4
5
 
5
6
  class Settings(BaseSettings):
6
7
  # LLM Provider Configuration (optional until used)
@@ -9,9 +10,18 @@ class Settings(BaseSettings):
9
10
  vertex_project_id: str = Field(default="", alias="VERTEX_PROJECT_ID")
10
11
  vertex_location: str = Field(default="us-central1", alias="VERTEX_LOCATION")
11
12
  google_application_credentials: str = Field(default="", alias="GOOGLE_APPLICATION_CREDENTIALS")
13
+ google_api_key: str = Field(default="", alias="GOOGLE_API_KEY")
14
+ google_cse_id: str = Field(default="", alias="GOOGLE_CSE_ID")
12
15
  xai_api_key: str = Field(default="", alias="XAI_API_KEY")
13
16
  grok_api_key: str = Field(default="", alias="GROK_API_KEY") # Backward compatibility
14
17
 
18
+ # LLM Models Configuration
19
+ llm_models_config_path: str = Field(
20
+ default="",
21
+ alias="LLM_MODELS_CONFIG",
22
+ description="Path to LLM models YAML configuration file"
23
+ )
24
+
15
25
  # Infrastructure Configuration (with sensible defaults)
16
26
  celery_broker_url: str = Field(default="redis://localhost:6379/0", alias="CELERY_BROKER_URL")
17
27
  cors_allowed_origins: str = Field(default="http://localhost:3000,http://express-gateway:3001", alias="CORS_ALLOWED_ORIGINS")
@@ -67,6 +77,34 @@ class Settings(BaseSettings):
67
77
  "enable_local_fallback": True,
68
78
  "local_storage_path": "./storage"
69
79
  }
80
+
81
+ def validate_llm_models_config(self) -> bool:
82
+ """
83
+ Validate that LLM models configuration file exists.
84
+
85
+ Returns:
86
+ True if config file exists or can be found in default locations
87
+
88
+ Raises:
89
+ FileNotFoundError: If config file doesn't exist
90
+ """
91
+ if self.llm_models_config_path:
92
+ config_path = Path(self.llm_models_config_path)
93
+ if not config_path.exists():
94
+ raise FileNotFoundError(
95
+ f"LLM models config file not found: {config_path}"
96
+ )
97
+ return True
98
+
99
+ # Check default locations
100
+ current_dir = Path(__file__).parent
101
+ default_path = current_dir / "llm_models.yaml"
102
+
103
+ if default_path.exists():
104
+ return True
105
+
106
+ # If not found, it's still okay - the config loader will try to find it
107
+ return True
70
108
 
71
109
  @lru_cache()
72
110
  def get_settings():
@@ -0,0 +1,130 @@
1
+ """Domain layer module
2
+
3
+ Contains business logic and domain models.
4
+ """
5
+
6
+ from .execution.model import TaskStepResult, TaskStatus, ErrorCode
7
+ from .task.model import TaskContext, DSLStep
8
+ from .task.dsl_processor import DSLProcessor
9
+ from .context import (
10
+ ContextEngine, SessionMetrics, ConversationMessage,
11
+ ConversationParticipant, ConversationSession, AgentCommunicationMessage,
12
+ create_session_key, validate_conversation_isolation_pattern
13
+ )
14
+ from .community import (
15
+ # Core managers
16
+ CommunityManager, CommunityIntegration, DecisionEngine, ResourceManager,
17
+ CollaborativeWorkflowEngine, CommunityAnalytics, MemberLifecycleHooks,
18
+
19
+ # Communication and context
20
+ CommunicationHub, Message, Event, MessageType, EventType,
21
+ SharedContextManager, SharedContext, ContextScope, ContextConflictStrategy,
22
+
23
+ # Agent adapters
24
+ AgentAdapter, StandardLLMAdapter, CustomAgentAdapter, AgentAdapterRegistry, AgentCapability,
25
+
26
+ # Builder
27
+ CommunityBuilder, builder,
28
+
29
+ # Enums
30
+ CommunityRole, GovernanceType, DecisionStatus, ResourceType,
31
+ ConsensusAlgorithm, ConflictResolutionStrategy,
32
+
33
+ # Models
34
+ CommunityMember, CommunityResource, CommunityDecision, AgentCommunity, CollaborationSession,
35
+
36
+ # Exceptions
37
+ CommunityException, CommunityNotFoundError, MemberNotFoundError, ResourceNotFoundError,
38
+ DecisionNotFoundError, AccessDeniedError, MembershipError, VotingError, GovernanceError,
39
+ CollaborationError, CommunityInitializationError, CommunityValidationError,
40
+ QuorumNotMetError, ConflictResolutionError, CommunityCapacityError,
41
+ AgentAdapterError, CommunicationError, ContextError,
42
+ )
43
+
44
+ __all__ = [
45
+ # Execution domain
46
+ "TaskStepResult",
47
+ "TaskStatus",
48
+ "ErrorCode",
49
+
50
+ # Task domain
51
+ "TaskContext",
52
+ "DSLStep",
53
+ "DSLProcessor",
54
+
55
+ # Context domain
56
+ "ContextEngine",
57
+ "SessionMetrics",
58
+ "ConversationMessage",
59
+ "ConversationParticipant",
60
+ "ConversationSession",
61
+ "AgentCommunicationMessage",
62
+ "create_session_key",
63
+ "validate_conversation_isolation_pattern",
64
+
65
+ # Community domain - Core managers
66
+ "CommunityManager",
67
+ "CommunityIntegration",
68
+ "DecisionEngine",
69
+ "ResourceManager",
70
+ "CollaborativeWorkflowEngine",
71
+ "CommunityAnalytics",
72
+ "MemberLifecycleHooks",
73
+
74
+ # Community domain - Communication and context
75
+ "CommunicationHub",
76
+ "Message",
77
+ "Event",
78
+ "MessageType",
79
+ "EventType",
80
+ "SharedContextManager",
81
+ "SharedContext",
82
+ "ContextScope",
83
+ "ContextConflictStrategy",
84
+
85
+ # Community domain - Agent adapters
86
+ "AgentAdapter",
87
+ "StandardLLMAdapter",
88
+ "CustomAgentAdapter",
89
+ "AgentAdapterRegistry",
90
+ "AgentCapability",
91
+
92
+ # Community domain - Builder
93
+ "CommunityBuilder",
94
+ "builder",
95
+
96
+ # Community domain - Enums
97
+ "CommunityRole",
98
+ "GovernanceType",
99
+ "DecisionStatus",
100
+ "ResourceType",
101
+ "ConsensusAlgorithm",
102
+ "ConflictResolutionStrategy",
103
+
104
+ # Community domain - Models
105
+ "CommunityMember",
106
+ "CommunityResource",
107
+ "CommunityDecision",
108
+ "AgentCommunity",
109
+ "CollaborationSession",
110
+
111
+ # Community domain - Exceptions
112
+ "CommunityException",
113
+ "CommunityNotFoundError",
114
+ "MemberNotFoundError",
115
+ "ResourceNotFoundError",
116
+ "DecisionNotFoundError",
117
+ "AccessDeniedError",
118
+ "MembershipError",
119
+ "VotingError",
120
+ "GovernanceError",
121
+ "CollaborationError",
122
+ "CommunityInitializationError",
123
+ "CommunityValidationError",
124
+ "QuorumNotMetError",
125
+ "ConflictResolutionError",
126
+ "CommunityCapacityError",
127
+ "AgentAdapterError",
128
+ "CommunicationError",
129
+ "ContextError",
130
+ ]
@@ -0,0 +1,159 @@
1
+ """
2
+ Community Domain Module
3
+
4
+ Provides agent community collaboration features including governance,
5
+ resource sharing, decision-making, and collaborative workflows.
6
+
7
+ This module enables developers to:
8
+ - Create and manage agent communities
9
+ - Facilitate agent-to-agent communication
10
+ - Share resources and knowledge between agents
11
+ - Make collective decisions through various governance models
12
+ - Run collaborative workflows and sessions
13
+
14
+ Version: 1.0.0
15
+ """
16
+
17
+ __version__ = "1.0.0"
18
+
19
+ # Core managers
20
+ from .community_manager import CommunityManager, MemberLifecycleHooks
21
+ from .community_integration import CommunityIntegration
22
+ from .decision_engine import DecisionEngine, ConsensusAlgorithm, ConflictResolutionStrategy
23
+ from .resource_manager import ResourceManager
24
+ from .collaborative_workflow import CollaborativeWorkflowEngine
25
+ from .analytics import CommunityAnalytics
26
+
27
+ # Communication and context
28
+ from .communication_hub import (
29
+ CommunicationHub,
30
+ Message,
31
+ Event,
32
+ MessageType,
33
+ EventType,
34
+ )
35
+ from .shared_context_manager import (
36
+ SharedContextManager,
37
+ SharedContext,
38
+ ContextScope,
39
+ ConflictResolutionStrategy as ContextConflictStrategy,
40
+ )
41
+
42
+ # Agent adapters
43
+ from .agent_adapter import (
44
+ AgentAdapter,
45
+ StandardLLMAdapter,
46
+ CustomAgentAdapter,
47
+ AgentAdapterRegistry,
48
+ AgentCapability,
49
+ )
50
+
51
+ # Builder
52
+ from .community_builder import CommunityBuilder, builder
53
+
54
+ # Models
55
+ from .models import (
56
+ CommunityRole,
57
+ GovernanceType,
58
+ DecisionStatus,
59
+ ResourceType,
60
+ CommunityMember,
61
+ CommunityResource,
62
+ CommunityDecision,
63
+ AgentCommunity,
64
+ CollaborationSession,
65
+ )
66
+
67
+ # Exceptions
68
+ from .exceptions import (
69
+ CommunityException,
70
+ CommunityNotFoundError,
71
+ MemberNotFoundError,
72
+ ResourceNotFoundError,
73
+ DecisionNotFoundError,
74
+ AccessDeniedError,
75
+ MembershipError,
76
+ VotingError,
77
+ GovernanceError,
78
+ CollaborationError,
79
+ CommunityInitializationError,
80
+ CommunityValidationError,
81
+ QuorumNotMetError,
82
+ ConflictResolutionError,
83
+ CommunityCapacityError,
84
+ AgentAdapterError,
85
+ CommunicationError,
86
+ ContextError,
87
+ )
88
+
89
+ __all__ = [
90
+ # Version
91
+ "__version__",
92
+
93
+ # Core managers
94
+ "CommunityManager",
95
+ "CommunityIntegration",
96
+ "DecisionEngine",
97
+ "ResourceManager",
98
+ "CollaborativeWorkflowEngine",
99
+ "CommunityAnalytics",
100
+ "MemberLifecycleHooks",
101
+
102
+ # Communication and context
103
+ "CommunicationHub",
104
+ "Message",
105
+ "Event",
106
+ "MessageType",
107
+ "EventType",
108
+ "SharedContextManager",
109
+ "SharedContext",
110
+ "ContextScope",
111
+ "ContextConflictStrategy",
112
+
113
+ # Agent adapters
114
+ "AgentAdapter",
115
+ "StandardLLMAdapter",
116
+ "CustomAgentAdapter",
117
+ "AgentAdapterRegistry",
118
+ "AgentCapability",
119
+
120
+ # Builder
121
+ "CommunityBuilder",
122
+ "builder",
123
+
124
+ # Enums
125
+ "CommunityRole",
126
+ "GovernanceType",
127
+ "DecisionStatus",
128
+ "ResourceType",
129
+ "ConsensusAlgorithm",
130
+ "ConflictResolutionStrategy",
131
+
132
+ # Models
133
+ "CommunityMember",
134
+ "CommunityResource",
135
+ "CommunityDecision",
136
+ "AgentCommunity",
137
+ "CollaborationSession",
138
+
139
+ # Exceptions
140
+ "CommunityException",
141
+ "CommunityNotFoundError",
142
+ "MemberNotFoundError",
143
+ "ResourceNotFoundError",
144
+ "DecisionNotFoundError",
145
+ "AccessDeniedError",
146
+ "MembershipError",
147
+ "VotingError",
148
+ "GovernanceError",
149
+ "CollaborationError",
150
+ "CommunityInitializationError",
151
+ "CommunityValidationError",
152
+ "QuorumNotMetError",
153
+ "ConflictResolutionError",
154
+ "CommunityCapacityError",
155
+ "AgentAdapterError",
156
+ "CommunicationError",
157
+ "ContextError",
158
+ ]
159
+