Metadata-Version: 2.4
Name: noosphere-langchain
Version: 1.0.0
Summary: Noosphere Prime SIGMA Tools for LangChain — sovereign risk intelligence for AI agents
Author-email: Noosphere Prime <api@noosphereprime.space>
License: MIT
Project-URL: Homepage, https://noosphereprime.space
Project-URL: Documentation, https://noosphereprime.space/integrations
Project-URL: Repository, https://github.com/noosphereprime/noosphere-langchain
Keywords: langchain,sovereign risk,financial intelligence,SIGMA,AI agent,country risk
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: langchain>=0.1.0
Requires-Dist: pydantic>=2.0
Provides-Extra: dev
Requires-Dist: langchain-openai; extra == "dev"
Requires-Dist: langchain-anthropic; extra == "dev"

# noosphere-langchain

**Noosphere Prime SIGMA Tools for LangChain** — sovereign risk intelligence for AI agents.

```bash
pip install noosphere-langchain
```

## Usage

```python
from noosphere_langchain import SIGMATool, SIGMAComparisonTool, SIGMARegimeTool
from langchain.agents import initialize_agent, AgentType
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="gpt-4")
tools = [SIGMATool(), SIGMAComparisonTool(), SIGMARegimeTool()]

agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)

# Single country
agent.run("What's the current sovereign risk for Turkey?")

# Comparison
agent.run("Compare the financial risk of Germany, France, and Italy")

# By regime
agent.run("Which countries are currently in collapse regime?")

# Complex analysis
agent.run("I have a portfolio with exposure to Turkey and Romania. What's the risk?")
```

## With Claude (Anthropic)

```python
from langchain_anthropic import ChatAnthropic

llm = ChatAnthropic(model="claude-sonnet-4-6")
agent = initialize_agent([SIGMATool(), SIGMAComparisonTool()], llm, ...)
```

## Available Tools

| Tool | Description |
|------|-------------|
| `SIGMATool` | Get SIGMA score for a single country |
| `SIGMAComparisonTool` | Compare multiple countries |
| `SIGMARegimeTool` | Find all countries in a specific regime |

## Data

All data from [Noosphere Prime SIGMA Engine v5.0](https://noosphereprime.space).
SHA256-anchored predictions. CC-BY-4.0 attribution required.
