aiecs 1.1.0__tar.gz → 1.2.0__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.
- {aiecs-1.1.0/aiecs.egg-info → aiecs-1.2.0}/PKG-INFO +5 -1
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/__init__.py +1 -1
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/config/config.py +2 -0
- aiecs-1.2.0/aiecs/domain/__init__.py +130 -0
- aiecs-1.2.0/aiecs/domain/community/__init__.py +159 -0
- aiecs-1.2.0/aiecs/domain/community/agent_adapter.py +516 -0
- aiecs-1.2.0/aiecs/domain/community/analytics.py +465 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/community/collaborative_workflow.py +99 -7
- aiecs-1.2.0/aiecs/domain/community/communication_hub.py +649 -0
- aiecs-1.2.0/aiecs/domain/community/community_builder.py +322 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/community/community_integration.py +365 -12
- aiecs-1.2.0/aiecs/domain/community/community_manager.py +813 -0
- aiecs-1.2.0/aiecs/domain/community/decision_engine.py +800 -0
- aiecs-1.2.0/aiecs/domain/community/exceptions.py +238 -0
- aiecs-1.2.0/aiecs/domain/community/models/__init__.py +36 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/community/resource_manager.py +1 -1
- aiecs-1.2.0/aiecs/domain/community/shared_context_manager.py +621 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/context/context_engine.py +37 -33
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/main.py +2 -2
- aiecs-1.2.0/aiecs/scripts/aid/VERSION_MANAGEMENT.md +97 -0
- aiecs-1.2.0/aiecs/scripts/aid/__init__.py +15 -0
- aiecs-1.2.0/aiecs/scripts/aid/version_manager.py +224 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/download_nlp_data.py +1 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/__init__.py +23 -23
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/__init__.py +5 -2
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/ai_document_orchestrator.py +39 -26
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/ai_document_writer_orchestrator.py +61 -38
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/content_insertion_tool.py +48 -28
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/document_creator_tool.py +47 -29
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/document_layout_tool.py +35 -20
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/document_parser_tool.py +56 -36
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/docs/document_writer_tool.py +115 -62
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/schema_generator.py +56 -56
- aiecs-1.2.0/aiecs/tools/statistics/__init__.py +82 -0
- aiecs-1.2.0/aiecs/tools/statistics/ai_data_analysis_orchestrator.py +581 -0
- aiecs-1.2.0/aiecs/tools/statistics/ai_insight_generator_tool.py +473 -0
- aiecs-1.2.0/aiecs/tools/statistics/ai_report_orchestrator_tool.py +629 -0
- aiecs-1.2.0/aiecs/tools/statistics/data_loader_tool.py +518 -0
- aiecs-1.2.0/aiecs/tools/statistics/data_profiler_tool.py +599 -0
- aiecs-1.2.0/aiecs/tools/statistics/data_transformer_tool.py +531 -0
- aiecs-1.2.0/aiecs/tools/statistics/data_visualizer_tool.py +460 -0
- aiecs-1.2.0/aiecs/tools/statistics/model_trainer_tool.py +470 -0
- aiecs-1.2.0/aiecs/tools/statistics/statistical_analyzer_tool.py +426 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/chart_tool.py +2 -1
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/image_tool.py +43 -43
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/office_tool.py +39 -36
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/pandas_tool.py +37 -33
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/report_tool.py +67 -56
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/research_tool.py +32 -31
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/scraper_tool.py +53 -46
- aiecs-1.2.0/aiecs/tools/task_tools/search_tool.py +1123 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/stats_tool.py +20 -15
- {aiecs-1.1.0 → aiecs-1.2.0/aiecs.egg-info}/PKG-INFO +5 -1
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs.egg-info/SOURCES.txt +22 -1
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs.egg-info/entry_points.txt +1 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs.egg-info/requires.txt +4 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/pyproject.toml +13 -1
- aiecs-1.1.0/aiecs/domain/__init__.py +0 -35
- aiecs-1.1.0/aiecs/domain/community/community_manager.py +0 -337
- aiecs-1.1.0/aiecs/domain/community/decision_engine.py +0 -354
- aiecs-1.1.0/aiecs/tools/task_tools/search_api.py +0 -7
- {aiecs-1.1.0 → aiecs-1.2.0}/LICENSE +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/MANIFEST.in +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/README.md +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/__main__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/aiecs_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/application/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/application/executors/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/application/executors/operation_executor.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/config/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/config/registry.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/core/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/core/interface/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/core/interface/execution_interface.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/core/interface/storage_interface.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/community/models/community_models.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/context/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/context/conversation_models.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/execution/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/execution/model.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/task/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/task/dsl_processor.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/task/model.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/domain/task/task_context.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/messaging/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/messaging/celery_task_manager.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/messaging/websocket_manager.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/monitoring/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/monitoring/executor_metrics.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/monitoring/structured_logger.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/monitoring/tracing_manager.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/persistence/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/persistence/context_engine_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/persistence/database_manager.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/persistence/file_storage.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/infrastructure/persistence/redis_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/base_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/client_factory.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/custom_callbacks.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/googleai_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/openai_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/vertex_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/llm/xai_client.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/DEPENDENCY_SYSTEM_SUMMARY.md +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/README_DEPENDENCY_CHECKER.md +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/dependency_checker.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/dependency_fixer.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/quick_dependency_check.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_check/setup_nlp_data.sh +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/README_WEASEL_PATCH.md +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/fix_weasel_validator.sh +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/patch_weasel_library.sh +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/dependance_patch/fix_weasel/run_weasel_patch.sh +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/tools_develop/README.md +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/tools_develop/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/tools_develop/check_type_annotations.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/scripts/tools_develop/validate_tool_schemas.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tasks/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tasks/worker.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/base_tool.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/langchain_adapter.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/task_tools/classfire_tool.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/temp_file_manager.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/tool_executor/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/tools/tool_executor/tool_executor.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/LLM_output_structor.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/base_callback.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/execution_utils.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/logging.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/prompt_loader.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/utils/token_usage_repository.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/ws/__init__.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs/ws/socket_server.py +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs.egg-info/dependency_links.txt +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/aiecs.egg-info/top_level.txt +0 -0
- {aiecs-1.1.0 → aiecs-1.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aiecs
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
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.
|
|
8
|
+
__version__ = "1.2.0"
|
|
9
9
|
__author__ = "AIECS Team"
|
|
10
10
|
__email__ = "iretbl@gmail.com"
|
|
11
11
|
|
|
@@ -9,6 +9,8 @@ class Settings(BaseSettings):
|
|
|
9
9
|
vertex_project_id: str = Field(default="", alias="VERTEX_PROJECT_ID")
|
|
10
10
|
vertex_location: str = Field(default="us-central1", alias="VERTEX_LOCATION")
|
|
11
11
|
google_application_credentials: str = Field(default="", alias="GOOGLE_APPLICATION_CREDENTIALS")
|
|
12
|
+
google_api_key: str = Field(default="", alias="GOOGLE_API_KEY")
|
|
13
|
+
google_cse_id: str = Field(default="", alias="GOOGLE_CSE_ID")
|
|
12
14
|
xai_api_key: str = Field(default="", alias="XAI_API_KEY")
|
|
13
15
|
grok_api_key: str = Field(default="", alias="GROK_API_KEY") # Backward compatibility
|
|
14
16
|
|
|
@@ -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
|
+
|