aiecs 1.1.0__py3-none-any.whl → 1.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.
Potentially problematic release.
This version of aiecs might be problematic. Click here for more details.
- aiecs/__init__.py +1 -1
- aiecs/config/config.py +2 -0
- aiecs/domain/__init__.py +95 -0
- aiecs/domain/community/__init__.py +159 -0
- aiecs/domain/community/agent_adapter.py +516 -0
- aiecs/domain/community/analytics.py +465 -0
- aiecs/domain/community/collaborative_workflow.py +99 -7
- aiecs/domain/community/communication_hub.py +649 -0
- aiecs/domain/community/community_builder.py +322 -0
- aiecs/domain/community/community_integration.py +365 -12
- aiecs/domain/community/community_manager.py +481 -5
- aiecs/domain/community/decision_engine.py +459 -13
- aiecs/domain/community/exceptions.py +238 -0
- aiecs/domain/community/models/__init__.py +36 -0
- aiecs/domain/community/resource_manager.py +1 -1
- aiecs/domain/community/shared_context_manager.py +621 -0
- aiecs/domain/context/context_engine.py +37 -33
- aiecs/main.py +2 -2
- aiecs/scripts/aid/VERSION_MANAGEMENT.md +97 -0
- aiecs/scripts/aid/__init__.py +15 -0
- aiecs/scripts/aid/version_manager.py +224 -0
- aiecs/scripts/dependance_check/download_nlp_data.py +1 -0
- aiecs/tools/__init__.py +23 -23
- aiecs/tools/docs/__init__.py +5 -2
- aiecs/tools/docs/ai_document_orchestrator.py +39 -26
- aiecs/tools/docs/ai_document_writer_orchestrator.py +61 -38
- aiecs/tools/docs/content_insertion_tool.py +48 -28
- aiecs/tools/docs/document_creator_tool.py +47 -29
- aiecs/tools/docs/document_layout_tool.py +35 -20
- aiecs/tools/docs/document_parser_tool.py +56 -36
- aiecs/tools/docs/document_writer_tool.py +115 -62
- aiecs/tools/schema_generator.py +56 -56
- aiecs/tools/statistics/__init__.py +82 -0
- aiecs/tools/statistics/ai_data_analysis_orchestrator.py +581 -0
- aiecs/tools/statistics/ai_insight_generator_tool.py +473 -0
- aiecs/tools/statistics/ai_report_orchestrator_tool.py +629 -0
- aiecs/tools/statistics/data_loader_tool.py +518 -0
- aiecs/tools/statistics/data_profiler_tool.py +599 -0
- aiecs/tools/statistics/data_transformer_tool.py +531 -0
- aiecs/tools/statistics/data_visualizer_tool.py +460 -0
- aiecs/tools/statistics/model_trainer_tool.py +470 -0
- aiecs/tools/statistics/statistical_analyzer_tool.py +426 -0
- aiecs/tools/task_tools/chart_tool.py +2 -1
- aiecs/tools/task_tools/image_tool.py +43 -43
- aiecs/tools/task_tools/office_tool.py +39 -36
- aiecs/tools/task_tools/pandas_tool.py +37 -33
- aiecs/tools/task_tools/report_tool.py +67 -56
- aiecs/tools/task_tools/research_tool.py +32 -31
- aiecs/tools/task_tools/scraper_tool.py +53 -46
- aiecs/tools/task_tools/search_tool.py +1123 -0
- aiecs/tools/task_tools/stats_tool.py +20 -15
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/METADATA +5 -1
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/RECORD +57 -36
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/entry_points.txt +1 -0
- aiecs/tools/task_tools/search_api.py +0 -7
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/WHEEL +0 -0
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {aiecs-1.1.0.dist-info → aiecs-1.2.0.dist-info}/top_level.txt +0 -0
aiecs/__init__.py
CHANGED
|
@@ -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
|
|
aiecs/config/config.py
CHANGED
|
@@ -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
|
|
aiecs/domain/__init__.py
CHANGED
|
@@ -11,6 +11,35 @@ from .context import (
|
|
|
11
11
|
ConversationParticipant, ConversationSession, AgentCommunicationMessage,
|
|
12
12
|
create_session_key, validate_conversation_isolation_pattern
|
|
13
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
|
+
)
|
|
14
43
|
|
|
15
44
|
__all__ = [
|
|
16
45
|
# Execution domain
|
|
@@ -32,4 +61,70 @@ __all__ = [
|
|
|
32
61
|
"AgentCommunicationMessage",
|
|
33
62
|
"create_session_key",
|
|
34
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",
|
|
35
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
|
+
|