Metadata-Version: 2.4
Name: nexus-autogen
Version: 1.0.0
Summary: NEXUS AI market intelligence tools for AutoGen — signals, Kalshi markets, wallet AML
Project-URL: Homepage, https://nexus-agent-xa12.onrender.com
Project-URL: Repository, https://github.com/RileyCraig14/nexus-agent
Author-email: RileyCraig14 <rileycraig14@gmail.com>
License: MIT
Keywords: ai-agents,autogen,crypto,defi,market-signals,mcp,microsoft,x402
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: requests>=2.28.0
Provides-Extra: autogen2
Requires-Dist: pyautogen>=0.2.0; extra == 'autogen2'
Provides-Extra: autogen4
Requires-Dist: autogen-agentchat>=0.4.0; extra == 'autogen4'
Provides-Extra: autopay
Requires-Dist: x402>=0.1.0; extra == 'autopay'
Description-Content-Type: text/markdown

# nexus-autogen

NEXUS AI market intelligence tools for AutoGen agents.

[![BTC Signal](https://nexus-agent-xa12.onrender.com/badge/BTC)](https://nexus-agent-xa12.onrender.com)

## Install

```bash
pip install nexus-autogen
```

## Quick start (AutoGen 0.2.x / pyautogen)

```python
import autogen
from nexus_autogen import register_nexus_tools

config_list = [{"model": "gpt-4o", "api_key": "sk-..."}]

assistant = autogen.AssistantAgent(
    name="market_analyst",
    llm_config={"config_list": config_list},
)
user_proxy = autogen.UserProxyAgent(
    name="user",
    human_input_mode="NEVER",
    max_consecutive_auto_reply=3,
)

# Register all NEXUS tools (free + paid)
register_nexus_tools(assistant, user_proxy, include_paid=False)

user_proxy.initiate_chat(
    assistant,
    message="What does Kalshi predict for the Fed's next rate decision?",
)
```

## AutoGen 0.4.x (autogen-agentchat)

```python
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_core.tools import FunctionTool
from nexus_autogen import nexus_kalshi, nexus_market_signal, nexus_reputation

tools = [
    FunctionTool(nexus_kalshi, description="FREE: Kalshi prediction market consensus"),
    FunctionTool(nexus_market_signal, description="AI market signal BTC/ETH/SOL ($0.05)"),
    FunctionTool(nexus_reputation, description="FREE: Agent reputation score"),
]

agent = AssistantAgent(
    name="market_analyst",
    model_client=OpenAIChatCompletionClient(model="gpt-4o"),
    tools=tools,
)
```

## With paid tools

```bash
export WALLET_PRIVATE_KEY=0x...   # Base mainnet wallet with USDC
pip install nexus-autogen[autopay]
```

## All tools

| Function | Price | Description |
|----------|-------|-------------|
| `nexus_market_signal` | $0.05 | BULLISH/BEARISH/NEUTRAL + confidence |
| `nexus_aggregate` | $0.15 | CoinGecko + QuantOracle + Kalshi consensus |
| `nexus_wallet_aml` | $0.001 | AML risk score for any EVM/Solana address |
| `nexus_sentiment` | $0.002 | Sentiment analysis |
| `nexus_search` | $0.02 | Web search + AI summary |
| `nexus_kalshi` | **FREE** | Prediction market consensus |
| `nexus_reputation` | **FREE** | Agent trust score 0-100 |
| `nexus_dns` | **FREE** | Route capability to best provider |

## Links

- API: [nexus-agent-xa12.onrender.com](https://nexus-agent-xa12.onrender.com)
- LangChain version: `pip install nexus-langchain`
- CrewAI version: `pip install nexus-crewai`
