Metadata-Version: 2.4
Name: naas-abi-marketplace
Version: 5.0.0
Summary: Add your description here
Author-email: Grace Lambert <maxime@naas.ai>, Alice Dupont <florent@naas.ai>, Emma Petit <jeremy@naas.ai>
License: MIT License
Project-URL: Homepage, https://github.com/jupyter-naas/abi
Project-URL: Repository, https://github.com/jupyter-naas/abi/tree/main/libs/naas-abi-marketplace
Requires-Python: <4,>=3.11
Description-Content-Type: text/markdown
Requires-Dist: naas-abi-core>=1.4.0
Requires-Dist: ijson>=3.2.0
Requires-Dist: pyyaml>=6.0.3
Provides-Extra: ai-bedrock
Requires-Dist: langchain-aws>=0.2.10; extra == "ai-bedrock"
Provides-Extra: ai-chatgpt
Requires-Dist: pdfplumber>=0.11.8; extra == "ai-chatgpt"
Provides-Extra: ai-claude
Requires-Dist: langchain-anthropic>=0.3.17; extra == "ai-claude"
Provides-Extra: ai-deepseek
Requires-Dist: langchain-ollama>=0.3.4; extra == "ai-deepseek"
Provides-Extra: ai-gemini
Requires-Dist: langchain-google-genai>=2.1.4; extra == "ai-gemini"
Provides-Extra: ai-gemma
Requires-Dist: langchain-ollama>=0.3.4; extra == "ai-gemma"
Provides-Extra: ai-grok
Requires-Dist: langchain-xai>=0.2.5; extra == "ai-grok"
Provides-Extra: ai-llama
Requires-Dist: langchain-ollama>=0.3.4; extra == "ai-llama"
Provides-Extra: ai-mistral
Requires-Dist: langchain-mistralai>=0.2.11; extra == "ai-mistral"
Provides-Extra: ai-ollama
Requires-Dist: langchain-ollama>=0.3.4; extra == "ai-ollama"
Provides-Extra: ai-openrouter
Provides-Extra: ai-perplexity
Requires-Dist: langchain-perplexity>=0.1.2; extra == "ai-perplexity"
Provides-Extra: ai-qwen
Requires-Dist: langchain-ollama>=0.3.4; extra == "ai-qwen"
Provides-Extra: applications-bodo
Requires-Dist: bodo>=2026.11; extra == "applications-bodo"
Provides-Extra: applications-git
Provides-Extra: applications-naas
Provides-Extra: domains-support
Requires-Dist: pynacl<2,>=1.5.0; extra == "domains-support"
Provides-Extra: domains-ontology-engineer
Requires-Dist: thefuzz==0.22.1; extra == "domains-ontology-engineer"
Requires-Dist: fuzzywuzzy-stubs==0.0.1; extra == "domains-ontology-engineer"
Provides-Extra: domains-document
Requires-Dist: beautifulsoup4>=4.12.0; extra == "domains-document"
Requires-Dist: pymupdf>=1.27.2.2; extra == "domains-document"
Requires-Dist: pymupdf4llm>=1.27.2.2; extra == "domains-document"
Requires-Dist: docling>=2.0.0; extra == "domains-document"
Requires-Dist: torch; extra == "domains-document"
Requires-Dist: torchvision; extra == "domains-document"

# naas-abi-marketplace

A comprehensive marketplace of pre-built modules, agents, integrations, and workflows for the ABI (Agentic Brain Infrastructure) framework. This package provides ready-to-use components organized into three main categories: AI agents, application integrations, and domain expert modules.

## Overview

`naas-abi-marketplace` is a collection of modular components that extend the ABI framework with:

- **AI Agent Modules**: Integration with major AI providers (ChatGPT, Claude, Gemini, Grok, Mistral, etc.)
- **Application Modules**: three application modules run in-engine (listed below)
- **Domain Expert Modules**: specialized agents for professional roles (listed below)

### Application Modules

Three application modules run in-engine:

- `applications.git` - Git operations and repository management (runs in the CLI's working directory)
- `applications.bodo` - Bodo platform integration
- `applications.naas` - ontology YAML publishing to a Naas workspace (for `ontology_engineer`)

The other applications (GitHub, LinkedIn, Google Search, PostgreSQL, PowerPoint,
Pennylane, Agicap, ArXiv, PubMed, Sanax, SEC EDGAR, X, ...) are **remote modules**:
each runs in its own process and reaches the engine over NATS. They live in
[`libs/naas-abi-marketplace-modules`](../naas-abi-marketplace-modules/README.md)
(jupyter-naas/abi#1423). Their in-engine versions were removed: a configuration
that still loads one (e.g. `naas_abi_marketplace.applications.github`) fails at
load. OpenRouter models come from `naas_abi_marketplace.ai.openrouter`.

**Usage Example:**

```python
from naas_abi_core.engine.Engine import Engine

engine = Engine()
engine.load(module_names=["naas_abi_marketplace.applications.git"])

# Access the Git agent
from naas_abi_marketplace.applications.git.agents.GitAgent import GitAgent

agent = GitAgent.New()
response = agent.invoke("Summarize the staged changes")
```

### Domain Expert Modules

Specialized agents designed for specific professional roles and tasks.

#### Available Domain Experts

**Engineering & Development:**
**Engineering & Data:**
- `domains.signals` — includes `SoftwareEngineerAgent`, `DevOpsEngineerAgent`, `DataEngineerAgent`

**Business & Sales:**
- `domains.account-executive` - Account management
- `domains.business-development-representative` - Business development
- `domains.sales-development-representative` - Sales development
- `domains.inside-sales-representative` - Inside sales operations

**Marketing & Content:**
- `domains.external` — includes `ContentCreatorAgent`, `CommunityManagerAgent`
- `domains.plans` — includes `ContentStrategistAgent` (content strategy)
- `domains.operations` — includes `ContentAnalystAgent`, `CampaignManagerAgent`

**Finance & Accounting:**
- `domains.finance` — includes `AccountantAgent`, `FinancialControllerAgent`, `TreasurerAgent`

**Management & Operations:**
- `domains.project-manager` - Project management
- `domains.customer-success-manager` - Customer success
- `domains.personnel` - HR management

**Research & Investigation:**
- `domains.intelligence` — includes `OSINTResearcherAgent`, `PrivateInvestigatorAgent`

**Support:**
- `domains.operations.modules.support` - Technical support and issue management

**Usage Example:**

```python
from naas_abi_core.engine.Engine import Engine

engine = Engine()
engine.load(module_names=["naas_abi_marketplace.domains.signals"])

# Access Software Engineer agent
from naas_abi_marketplace.domains.signals.agents.SoftwareEngineerAgent import (
    SoftwareEngineerAgent,
)

agent = SoftwareEngineerAgent.New()
response = agent.invoke("Design a microservices architecture for an e-commerce platform")
```

## Module Structure

Each marketplace module follows a consistent structure:

```
module_name/
├── __init__.py              # Module definition and configuration
├── agents/                   # AI agents
│   └── *Agent.py            # Agent implementations
├── integrations/             # External service integrations
│   └── *Integration.py      # Integration implementations
├── workflows/                # Business logic workflows
│   └── *Workflow.py         # Workflow implementations
├── pipelines/               # Data processing pipelines
│   └── *Pipeline.py         # Pipeline implementations
├── ontologies/              # Semantic ontologies
│   └── *.ttl                # RDF/Turtle ontology files
├── orchestrations/          # Dagster orchestration (optional)
│   └── definitions.py      # Dagster definitions
└── README.md                # Module documentation
```

## Configuration

### Enabling Modules

Modules are configured in your `config.yaml`:

```yaml
modules:
  # AI Agents
  - module: naas_abi_marketplace.ai.chatgpt
    enabled: true
    config:
      openai_api_key: "${OPENAI_API_KEY}"
  
  - module: naas_abi_marketplace.ai.anthropic
    enabled: true
    config:
      anthropic_api_key: "${ANTHROPIC_API_KEY}"
  
  # Applications (in-engine; the others run as remote modules)
  - module: naas_abi_marketplace.applications.git
    enabled: true
  
  # Domain Experts
  - module: naas_abi_marketplace.domains.signals
    enabled: true
  
  - module: naas_abi_marketplace.domains.operations
    enabled: true
```

### Soft Dependencies

Many modules are marked as "soft" dependencies, meaning they're optional and won't cause failures if unavailable:

```python
# In naas_abi module dependencies
modules=[
    "naas_abi_marketplace.ai.anthropic#soft",  # Optional
    "naas_abi_marketplace.applications.git#soft",  # Optional
]
```

## Usage Patterns

### Loading Multiple Modules

```python
from naas_abi_core.engine.Engine import Engine

engine = Engine()
engine.load(module_names=[
    "naas_abi_marketplace.ai.chatgpt",
    "naas_abi_marketplace.ai.anthropic",
    "naas_abi_marketplace.applications.git",
    "naas_abi_marketplace.domains.signals"
])
```

### Accessing Module Components

```python
# Access agents
for module_name, module in engine.modules.items():
    for agent_class in module.agents:
        print(f"{module_name}: {agent_class.__name__}")

# Access workflows
for module_name, module in engine.modules.items():
    for workflow in module.workflows:
        print(f"{module_name}: {workflow.__class__.__name__}")

# Access integrations
for module_name, module in engine.modules.items():
    for integration in module.integrations:
        print(f"{module_name}: {integration.__class__.__name__}")
```

## Demo Applications

The marketplace includes demo applications and UI patterns in `__demo__/apps/`:

- **Dashboard**: Central control hub
- **Chat Interface**: Multi-agent chat interface
- **Table Mode**: Advanced data table interface
- **Kanban Mode**: Project management with kanban boards
- **Ontology Mode**: Knowledge graph visualization
- **Calendar Mode**: Scheduling interface
- **Gallery Mode**: Media management
- **And more...**

## Marketplace UI

A Streamlit-based marketplace interface (`marketplace.py`) provides:

- **Module Discovery**: Browse available modules by category
- **Status Monitoring**: Check which modules are running
- **One-Click Launch**: Start applications and modules
- **Search**: Find modules by name or description

**Run the marketplace:**

```bash
streamlit run marketplace.py
```

## Key Features

### 🔌 **Extensive Integrations**
50+ pre-built integrations with popular services and platforms

### 🤖 **Multiple AI Providers**
Support for 10+ major AI providers with optimized configurations

### 👥 **Domain Expertise**
20+ specialized agents for professional roles and tasks

### 🧩 **Modular Architecture**
Pick and choose only the modules you need

### ⚡ **Optional Dependencies**
Modules can be installed individually to minimize dependencies

### 📚 **Comprehensive Documentation**
Each module includes detailed README and usage examples

### 🔄 **Consistent Interface**
All modules follow the same structure and patterns

## Dependencies

- `naas-abi-core>=1.0.0`: Core ABI framework

Optional dependencies are listed in `pyproject.toml` under `[project.optional-dependencies]` and can be installed per module as needed.

## Contributing

To add a new module to the marketplace:

1. Create a new directory under `ai/`, `applications/`, or `domains/`
2. Follow the standard module structure
3. Implement required components (agents, integrations, etc.)
4. Add module configuration in `__init__.py`
5. Create a README.md with documentation
6. Add optional dependencies to `pyproject.toml` if needed

## See Also

- [ABI Main README](../../README.md) - Complete ABI framework documentation
- [naas-abi-core](../naas-abi-core/) - Core engine documentation
- [naas-abi](../naas-abi/) - Main ABI module documentation
- [naas-abi-cli](../naas-abi-cli/) - CLI tool documentation

## License

MIT License

## Documentation

- [Install a marketplace module](https://docs.naas.ai/user-guide/build/modules/marketplace/marketplace-install)
- [Marketplace overview](https://docs.naas.ai/user-guide/build/modules/marketplace/marketplace-overview)
- [Publish a module](https://docs.naas.ai/user-guide/build/modules/marketplace/marketplace-publish)
- [Quickstart](https://docs.naas.ai/user-guide/get-started/quickstart)
