Skip to main content

🏭 Sasefied - Industry-Specific AI Agents

License: MIT Python 3.8+ Documentation

Comprehensive AI-powered agents specialized for different business sectors. Each module provides domain-specific expertise, intelligent routing, and collaborative problem-solving capabilities.

✨ Features

  • 🎯 Industry Expertise - Deep domain knowledge and specialized capabilities for each sector
  • 🤖 Intelligent Routing - Automatic query routing to appropriate specialized agents
  • 🤝 Multi-Agent Collaboration - Coordinated responses from multiple expert agents
  • 📊 Regulatory Compliance - Built-in regulatory guidance and compliance requirements
  • 🔧 Consistent Architecture - Standardized patterns across all industry modules
  • 📈 Scalable Design - Easy to extend and customize for specific needs

📦 Installation

pip install sasefied

Optional Dependencies

For enhanced web scraping capabilities:

pip install sasefied[scraping]

For web interface:

pip install sasefied[web]

🎯 Quick Start

Basic Agent Usage

from sasefied.agents import DeepSearchAgent
from langchain_openai import ChatOpenAI

# Initialize LLM
llm = ChatOpenAI(model="gpt-4")

# Create a deep search agent
search_agent = DeepSearchAgent(llm=llm)

# Use the agent
result = search_agent.invoke([
    {"role": "user", "content": "Research the latest developments in quantum computing"}
])
print(result["messages"][-1].content)

Industry-Specific Agents

from sasefied.industry.airlines import create_passenger_service_agent
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-4")

# Create airline passenger service agent
agent = create_passenger_service_agent(llm=llm)

# Handle passenger inquiry
response = agent.invoke([
    {"role": "user", "content": "What are the baggage policies for international flights?"}
])

Multi-Agent Agentic Systems

from sasefied.industry.airlines import create_airline_orchestrator
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-4")

# Create complete airline management system
orchestrator = create_airline_orchestrator(llm)

# Coordinate multiple agents for complex operations
result = orchestrator.handle_flight_disruption(
    flight_id="AA123",
    issue="weather_delay",
    passengers=150
)
# Automatically coordinates: Operations, Crew, Passenger Service, Revenue Management

Using the Prompt Hub

from sasefied.hub import AgentPromptExplorerHub

# Initialize the hub
hub = AgentPromptExplorerHub()

# Search for prompts
prompts = hub.search_prompts("customer service", industry="retail")

# Export prompts
hub.export_prompts(prompts, format="json", output_file="customer_prompts.json")

CLI Usage

# Explore available prompts
sasefied-hub explore

# Search for specific prompts
sasefied-hub search "revenue management" --industry airlines

# Export prompts
sasefied-hub export --industry healthcare --format yaml

🏗️ Architecture

sasefied/
├── agents/                 # Core agent framework
│   ├── base.py            # BaseAgent class
│   └── deep_search.py     # DeepSearchAgent implementation
├── industry/              # Industry-specific agents
│   ├── airlines/          # Airline industry agents
│   ├── ev_batteries/      # EV battery industry agents
│   └── fruits/            # Agriculture industry agents
├── hub/                   # Prompt management system
│   ├── core/              # Core models and repository
│   ├── cli.py             # Command-line interface
│   ├── web.py             # Web interface
│   └── hub.py             # Main hub functionality
├── tools/                 # Utility tools
│   └── http.py            # HTTP request tool
└── agentic_systems/       # Multi-agent orchestration

🔧 Configuration

Environment Variables

# OpenAI API (if using OpenAI models)
OPENAI_API_KEY=your_api_key_here

# Optional: Custom model configurations
DEFAULT_MODEL=gpt-4
DEFAULT_TEMPERATURE=0.7

Custom Agent Development

from sasefied.agents.base import BaseAgent
from langchain_core.tools import BaseTool
from langchain_openai import ChatOpenAI

class CustomAgent(BaseAgent):
    def __init__(self, llm: ChatOpenAI, tools: List[BaseTool] = None):
        super().__init__(
            name="CustomAgent",
            description="Your custom agent description",
            tools=tools or [],
            llm=llm
        )
    
    def get_system_prompt(self) -> str:
        return "You are a specialized agent for..."

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

git clone https://github.com/your-org/sasefied.git
cd sasefied
pip install -e ".[dev]"

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

🌟 Roadmap

  • Additional industry modules (Healthcare, Finance, Manufacturing)
  • Advanced orchestration patterns
  • Performance monitoring and analytics
  • Integration with more LLM providers
  • Enhanced web scraping capabilities
  • Agent marketplace and sharing platform

🏆 Acknowledgments

Built with:


Sasefied - Empowering the next generation of intelligent agents.

Metadata

Release files for sasefied 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sasefied 0.1.3
File Size Uploaded
sasefied-0.1.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sasefied 0.1.3
File Interpreter ABI Platform
sasefied-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / sasefied-0.1.3.tar.gz

Download URL sasefied-0.1.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f3160b00b514c8899302d537fa46804fd86638625bfbd29fb0a0679704dea4a4
BLAKE2b-256 checksum
How to use checksums
b68ffad814c6b4e2cdf72e58e504ca2d20afe00e280f40b8141a643e064e7975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / sasefied-0.1.3-py3-none-any.whl

Download URL sasefied-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43ae415a150a79f60bfa46784f4a55cd97647a5238c5d6bd4ddc60d376e4f339
BLAKE2b-256 checksum
How to use checksums
4b4a80f62ee35aaf1a42b132ef5f93c659627741ee4de1de0b14d09f5bc2c068
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page