sasefied 0.1.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.
- sasefied/__init__.py +38 -0
- sasefied/core.py +0 -0
- sasefied-0.1.0.dist-info/METADATA +289 -0
- sasefied-0.1.0.dist-info/RECORD +6 -0
- sasefied-0.1.0.dist-info/WHEEL +5 -0
- sasefied-0.1.0.dist-info/top_level.txt +1 -0
sasefied/__init__.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Sasefied Agent Library
|
|
3
|
+
|
|
4
|
+
A comprehensive, production-ready library for building intelligent AI agents
|
|
5
|
+
with industry-specific capabilities.
|
|
6
|
+
|
|
7
|
+
Author: Library Maintainer
|
|
8
|
+
Email: maintainer@sasefied.com
|
|
9
|
+
GitHub: https://github.com/sasefied/sasefied-agent
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
__version__ = "1.0.0"
|
|
13
|
+
__author__ = "Library Maintainer"
|
|
14
|
+
__email__ = "satyamsingh7734@gmail.com"
|
|
15
|
+
__description__ = "A comprehensive library for building intelligent AI agents with industry-specific capabilities"
|
|
16
|
+
|
|
17
|
+
# Core imports
|
|
18
|
+
from .agents.base import BaseAgent
|
|
19
|
+
from .agents.deep_search import DeepSearchAgent
|
|
20
|
+
|
|
21
|
+
# Industry modules
|
|
22
|
+
from . import industry
|
|
23
|
+
from . import hub
|
|
24
|
+
from . import tools
|
|
25
|
+
from . import agentic_systems
|
|
26
|
+
|
|
27
|
+
__all__ = [
|
|
28
|
+
"BaseAgent",
|
|
29
|
+
"DeepSearchAgent",
|
|
30
|
+
"industry",
|
|
31
|
+
"hub",
|
|
32
|
+
"tools",
|
|
33
|
+
"agentic_systems",
|
|
34
|
+
"__version__",
|
|
35
|
+
"__author__",
|
|
36
|
+
"__email__",
|
|
37
|
+
"__description__"
|
|
38
|
+
]
|
sasefied/core.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sasefied
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Sasefied is an agentic systems platform for building multi-agent workflows across industries
|
|
5
|
+
Author: Sasefied Inc.
|
|
6
|
+
Maintainer-email: Satyam Singh <satyamsingh7734@gmail.com>
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://github.com/sasefied/sasefied
|
|
9
|
+
Project-URL: Repository, https://github.com/sasefied/sasefied
|
|
10
|
+
Project-URL: Issues, https://github.com/sasefied/sasefied/issues
|
|
11
|
+
Keywords: agentic-systems,multi-agent,ai-orchestration,langgraph,crewai,fastapi,workflow-engine,industry-ai
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
|
+
Requires-Python: >=3.10
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
Requires-Dist: langchain-core
|
|
21
|
+
Requires-Dist: langgraph>=0.2.0
|
|
22
|
+
Requires-Dist: langchain-community
|
|
23
|
+
Requires-Dist: requests
|
|
24
|
+
Requires-Dist: duckduckgo-search>=3.0.0
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
|
|
28
|
+
Requires-Dist: black>=24.0; extra == "dev"
|
|
29
|
+
Requires-Dist: ruff>=0.3.0; extra == "dev"
|
|
30
|
+
Requires-Dist: mypy>=1.8; extra == "dev"
|
|
31
|
+
Requires-Dist: pre-commit>=3.6; extra == "dev"
|
|
32
|
+
Provides-Extra: docs
|
|
33
|
+
Requires-Dist: mkdocs>=1.5; extra == "docs"
|
|
34
|
+
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
|
|
35
|
+
|
|
36
|
+
# Sasefied Agent Library
|
|
37
|
+
|
|
38
|
+
[](https://python.org)
|
|
39
|
+
[](LICENSE)
|
|
40
|
+
[]()
|
|
41
|
+
|
|
42
|
+
A comprehensive, production-ready library for building intelligent AI agents and complete **agentic systems** with industry-specific capabilities. Sasefied provides a robust framework for creating specialized agents, orchestrating multi-agent collaborations, complete with pre-built industry solutions, advanced tools, and a sophisticated prompt management system.
|
|
43
|
+
|
|
44
|
+
## 🚀 Features
|
|
45
|
+
|
|
46
|
+
### Core Agent Framework
|
|
47
|
+
- **BaseAgent Class**: Extensible foundation for all agent types
|
|
48
|
+
- **ReAct Architecture**: Built on LangGraph for reasoning and acting
|
|
49
|
+
- **Tool Integration**: Seamless integration with LangChain tools
|
|
50
|
+
- **Multi-LLM Support**: Compatible with any LangChain-compatible chat model
|
|
51
|
+
|
|
52
|
+
### Multi-Agent Orchestration
|
|
53
|
+
- **Agentic Systems**: Complete multi-agent ecosystems for complex workflows
|
|
54
|
+
- **Agent Orchestration**: Coordinate multiple specialized agents working together
|
|
55
|
+
- **Industry Orchestrators**: Pre-built systems for airlines, EV batteries, and agriculture
|
|
56
|
+
- **Communication Protocols**: Structured agent-to-agent interactions
|
|
57
|
+
- **Task Distribution**: Intelligent workload management across agents
|
|
58
|
+
- **Workflow Coordination**: Complex multi-step process automation
|
|
59
|
+
|
|
60
|
+
### Industry-Specific Agents
|
|
61
|
+
- **Airlines**: Complete suite of 8 specialized agents for airline operations
|
|
62
|
+
- Passenger Service, Revenue Management, Flight Operations
|
|
63
|
+
- Safety Compliance, Maintenance Engineering, Network Planning
|
|
64
|
+
- Crew Management, Ancillary Revenue
|
|
65
|
+
- **EV Batteries**: Specialized agents for electric vehicle battery lifecycle
|
|
66
|
+
- Battery Technology, Manufacturing & Supply, Safety & Compliance
|
|
67
|
+
- Lifecycle Management, System Orchestrator
|
|
68
|
+
- **Fruits & Agriculture**: Supply chain and quality management agents
|
|
69
|
+
- Customer Service, Market Control, Quality Control
|
|
70
|
+
- Supply Chain, Sustainability Management
|
|
71
|
+
|
|
72
|
+
### Advanced Tools
|
|
73
|
+
- **DeepSearchAgent**: Multi-step web research with DuckDuckGo integration
|
|
74
|
+
- **HTTP Tool**: Generic HTTP request tool for API interactions
|
|
75
|
+
- **Web Scraping**: Static and dynamic content extraction (Selenium support)
|
|
76
|
+
|
|
77
|
+
### Prompt Management Hub
|
|
78
|
+
- **Agent Prompt Hub**: Comprehensive library of pre-built prompts
|
|
79
|
+
- **CLI Interface**: Command-line tools for prompt exploration and management
|
|
80
|
+
- **Web Interface**: Browser-based prompt management system
|
|
81
|
+
- **Search & Filter**: Advanced search across industries and categories
|
|
82
|
+
- **Export Capabilities**: Multiple export formats for prompts
|
|
83
|
+
|
|
84
|
+
## 📦 Installation
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pip install sasefied
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Optional Dependencies
|
|
91
|
+
|
|
92
|
+
For enhanced web scraping capabilities:
|
|
93
|
+
```bash
|
|
94
|
+
pip install sasefied[scraping]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
For web interface:
|
|
98
|
+
```bash
|
|
99
|
+
pip install sasefied[web]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## 🎯 Quick Start
|
|
103
|
+
|
|
104
|
+
### Basic Agent Usage
|
|
105
|
+
|
|
106
|
+
```python
|
|
107
|
+
from sasefied.agents import DeepSearchAgent
|
|
108
|
+
from langchain_openai import ChatOpenAI
|
|
109
|
+
|
|
110
|
+
# Initialize LLM
|
|
111
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
112
|
+
|
|
113
|
+
# Create a deep search agent
|
|
114
|
+
search_agent = DeepSearchAgent(llm=llm)
|
|
115
|
+
|
|
116
|
+
# Use the agent
|
|
117
|
+
result = search_agent.invoke([
|
|
118
|
+
{"role": "user", "content": "Research the latest developments in quantum computing"}
|
|
119
|
+
])
|
|
120
|
+
print(result["messages"][-1].content)
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Industry-Specific Agents
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from sasefied.industry.airlines import create_passenger_service_agent
|
|
127
|
+
from langchain_openai import ChatOpenAI
|
|
128
|
+
|
|
129
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
130
|
+
|
|
131
|
+
# Create airline passenger service agent
|
|
132
|
+
agent = create_passenger_service_agent(llm=llm)
|
|
133
|
+
|
|
134
|
+
# Handle passenger inquiry
|
|
135
|
+
response = agent.invoke([
|
|
136
|
+
{"role": "user", "content": "What are the baggage policies for international flights?"}
|
|
137
|
+
])
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Multi-Agent Agentic Systems
|
|
141
|
+
|
|
142
|
+
```python
|
|
143
|
+
from sasefied.industry.airlines import create_airline_orchestrator
|
|
144
|
+
from langchain_openai import ChatOpenAI
|
|
145
|
+
|
|
146
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
147
|
+
|
|
148
|
+
# Create complete airline management system
|
|
149
|
+
orchestrator = create_airline_orchestrator(llm)
|
|
150
|
+
|
|
151
|
+
# Coordinate multiple agents for complex operations
|
|
152
|
+
result = orchestrator.handle_flight_disruption(
|
|
153
|
+
flight_id="AA123",
|
|
154
|
+
issue="weather_delay",
|
|
155
|
+
passengers=150
|
|
156
|
+
)
|
|
157
|
+
# Automatically coordinates: Operations, Crew, Passenger Service, Revenue Management
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Using the Prompt Hub
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
from sasefied.hub import AgentPromptExplorerHub
|
|
164
|
+
|
|
165
|
+
# Initialize the hub
|
|
166
|
+
hub = AgentPromptExplorerHub()
|
|
167
|
+
|
|
168
|
+
# Search for prompts
|
|
169
|
+
prompts = hub.search_prompts("customer service", industry="retail")
|
|
170
|
+
|
|
171
|
+
# Export prompts
|
|
172
|
+
hub.export_prompts(prompts, format="json", output_file="customer_prompts.json")
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### CLI Usage
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Explore available prompts
|
|
179
|
+
sasefied-hub explore
|
|
180
|
+
|
|
181
|
+
# Search for specific prompts
|
|
182
|
+
sasefied-hub search "revenue management" --industry airlines
|
|
183
|
+
|
|
184
|
+
# Export prompts
|
|
185
|
+
sasefied-hub export --industry healthcare --format yaml
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
## 🏗️ Architecture
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
sasefied/
|
|
192
|
+
├── agents/ # Core agent framework
|
|
193
|
+
│ ├── base.py # BaseAgent class
|
|
194
|
+
│ └── deep_search.py # DeepSearchAgent implementation
|
|
195
|
+
├── industry/ # Industry-specific agents
|
|
196
|
+
│ ├── airlines/ # Airline industry agents
|
|
197
|
+
│ ├── ev_batteries/ # EV battery industry agents
|
|
198
|
+
│ └── fruits/ # Agriculture industry agents
|
|
199
|
+
├── hub/ # Prompt management system
|
|
200
|
+
│ ├── core/ # Core models and repository
|
|
201
|
+
│ ├── cli.py # Command-line interface
|
|
202
|
+
│ ├── web.py # Web interface
|
|
203
|
+
│ └── hub.py # Main hub functionality
|
|
204
|
+
├── tools/ # Utility tools
|
|
205
|
+
│ └── http.py # HTTP request tool
|
|
206
|
+
└── agentic_systems/ # Multi-agent orchestration
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## 🔧 Configuration
|
|
210
|
+
|
|
211
|
+
### Environment Variables
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# OpenAI API (if using OpenAI models)
|
|
215
|
+
OPENAI_API_KEY=your_api_key_here
|
|
216
|
+
|
|
217
|
+
# Optional: Custom model configurations
|
|
218
|
+
DEFAULT_MODEL=gpt-4
|
|
219
|
+
DEFAULT_TEMPERATURE=0.7
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Custom Agent Development
|
|
223
|
+
|
|
224
|
+
```python
|
|
225
|
+
from sasefied.agents.base import BaseAgent
|
|
226
|
+
from langchain_core.tools import BaseTool
|
|
227
|
+
from langchain_openai import ChatOpenAI
|
|
228
|
+
|
|
229
|
+
class CustomAgent(BaseAgent):
|
|
230
|
+
def __init__(self, llm: ChatOpenAI, tools: List[BaseTool] = None):
|
|
231
|
+
super().__init__(
|
|
232
|
+
name="CustomAgent",
|
|
233
|
+
description="Your custom agent description",
|
|
234
|
+
tools=tools or [],
|
|
235
|
+
llm=llm
|
|
236
|
+
)
|
|
237
|
+
|
|
238
|
+
def get_system_prompt(self) -> str:
|
|
239
|
+
return "You are a specialized agent for..."
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## 📚 Documentation
|
|
243
|
+
|
|
244
|
+
- [API Reference](docs/api.md)
|
|
245
|
+
- [Agent Development Guide](docs/agent-development.md)
|
|
246
|
+
- [Industry Solutions](docs/industry-solutions.md)
|
|
247
|
+
- [Prompt Hub Guide](docs/prompt-hub.md)
|
|
248
|
+
|
|
249
|
+
## 🤝 Contributing
|
|
250
|
+
|
|
251
|
+
We welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.
|
|
252
|
+
|
|
253
|
+
### Development Setup
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
git clone https://github.com/your-org/sasefied.git
|
|
257
|
+
cd sasefied
|
|
258
|
+
pip install -e ".[dev]"
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
## 📄 License
|
|
262
|
+
|
|
263
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
264
|
+
|
|
265
|
+
## 🆘 Support
|
|
266
|
+
|
|
267
|
+
- 📖 [Documentation](docs/)
|
|
268
|
+
- 🐛 [Issue Tracker](https://github.com/your-org/sasefied/issues)
|
|
269
|
+
- 💬 [Discussions](https://github.com/your-org/sasefied/discussions)
|
|
270
|
+
|
|
271
|
+
## 🌟 Roadmap
|
|
272
|
+
|
|
273
|
+
- [ ] Additional industry modules (Healthcare, Finance, Manufacturing)
|
|
274
|
+
- [ ] Advanced orchestration patterns
|
|
275
|
+
- [ ] Performance monitoring and analytics
|
|
276
|
+
- [ ] Integration with more LLM providers
|
|
277
|
+
- [ ] Enhanced web scraping capabilities
|
|
278
|
+
- [ ] Agent marketplace and sharing platform
|
|
279
|
+
|
|
280
|
+
## 🏆 Acknowledgments
|
|
281
|
+
|
|
282
|
+
Built with:
|
|
283
|
+
- [LangChain](https://langchain.com/) - LLM framework
|
|
284
|
+
- [LangGraph](https://langchain-ai.github.io/langgraph/) - Agent orchestration
|
|
285
|
+
- [DuckDuckGo](https://duckduckgo.com/) - Search integration
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
**Sasefied** - Empowering the next generation of intelligent agents.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sasefied/__init__.py,sha256=ZiApRthL41Q76Pn9Hbkh4klGBR2-a3-C0bL_-DnRZ5E,910
|
|
2
|
+
sasefied/core.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
sasefied-0.1.0.dist-info/METADATA,sha256=3YLee1HcyP8OGNcNJMd-ORkBOuxYZ4WLYGs1oZoTKjE,9735
|
|
4
|
+
sasefied-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
sasefied-0.1.0.dist-info/top_level.txt,sha256=WGWWxsTapLwzlAxAOPNPqa1NcrboeV7gYuHDArs9aO8,9
|
|
6
|
+
sasefied-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
sasefied
|