Metadata-Version: 2.4
Name: reinogent
Version: 0.2.3
Summary: Official Python SDK, ADK (Agent Development Kit) & CLI for building, downloading, and running AI Models, MCP Servers, and Agents from ReinoGent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: transformers
Requires-Dist: torch>=2.1.0; extra == "transformers"
Requires-Dist: transformers>=4.41.0; extra == "transformers"
Requires-Dist: safetensors>=0.4.0; extra == "transformers"
Requires-Dist: accelerate>=0.30.0; extra == "transformers"
Provides-Extra: embeddings
Requires-Dist: sentence-transformers>=3.0.0; extra == "embeddings"
Provides-Extra: mcp
Requires-Dist: mcp>=1.0.0; extra == "mcp"
Provides-Extra: agent
Requires-Dist: fastapi>=0.115.0; extra == "agent"
Requires-Dist: uvicorn[standard]>=0.32.0; extra == "agent"
Requires-Dist: httpx>=0.27.0; extra == "agent"
Provides-Extra: publish
Requires-Dist: huggingface_hub>=0.25.0; extra == "publish"
Provides-Extra: all
Requires-Dist: torch>=2.1.0; extra == "all"
Requires-Dist: transformers>=4.41.0; extra == "all"
Requires-Dist: safetensors>=0.4.0; extra == "all"
Requires-Dist: accelerate>=0.30.0; extra == "all"
Requires-Dist: sentence-transformers>=3.0.0; extra == "all"
Requires-Dist: mcp>=1.0.0; extra == "all"
Requires-Dist: fastapi>=0.115.0; extra == "all"
Requires-Dist: uvicorn[standard]>=0.32.0; extra == "all"
Requires-Dist: httpx>=0.27.0; extra == "all"
Requires-Dist: huggingface_hub>=0.25.0; extra == "all"

# `reinogent` — Official Python SDK, ADK & CLI

Python **SDK**, **ADK (Agent Development Kit)**, and `reino` **CLI** for discovering, downloading, building, and running **AI Models**, **MCP Servers**, and **Autonomous Agents** with ReinoGent.

## Installation

```bash
pip install reinogent

# Optional extras when needed:
pip install "reinogent[transformers]"
pip install "reinogent[embeddings]"
pip install "reinogent[mcp]"
pip install "reinogent[agent]"
pip install "reinogent[all]"
```

## ReinoGent ADK (Local Agents + Live MCP Tools)

```python
from reinogent.adk import Agent, LocalAgentRunner, SequentialWorkflow, tool

@tool
def add(a: int, b: int) -> int:
    """Add two integers."""
    return a + b

# Build an agent with a local or cloud model + live MCP tools
with Agent(
    name="DevHelper",
    model="ollama/qwen2.5:7b",
    instructions="You are a concise developer assistant.",
    tools=[add],
    mcp_servers=["<mcp-slug>"],
) as agent:
    print(agent.ask("Add 12 + 8"))

# Or run a ReinoGent agent locally with your own model:
with LocalAgentRunner.from_reinogent(
    agent_id="<agent-id>",
    model="ollama/llama3.2:3b",
    mcp_servers=["<mcp-slug>"],
) as local_agent:
    print(local_agent.ask("Summarize my latest tasks"))
```

### Run Local Agents from the Terminal (`reino chat`)

```bash
reino chat <agent-id> --model ollama/qwen2.5:7b --mcp <mcp-slug>
reino chat --model ollama/llama3.2:3b --session my-session
```

## CLI Commands

```bash
# Browse catalog
reino list models
reino list mcp
reino list agents

# Inspect required dependencies
reino deps model <model-slug>
reino deps mcp <mcp-slug>
reino deps agent <agent-id>

# Pull resources & install dependencies
reino pull model <model-slug> --install-deps
reino pull mcp <mcp-slug> --config
reino pull agent <agent-id> --install-deps

# Run any pulled bundle or scaffold a new agent project
reino run ./<folder-name>
reino init "My Agent" --model <model-slug> --mcp <mcp-slug>
```

## Build a Hosted or Local Agent (`reinogent.AgentApp`)

```python
import reinogent

app = reinogent.AgentApp(
    name="My Agent",
    model="<model-slug>",
    mcp_tools=["<mcp-slug>"],
)

@app.on_message
async def handle(ctx: reinogent.AgentContext):
    return f"Received: {ctx.input}"

if __name__ == "__main__":
    app.serve(port=8001)
```

## Python SDK Helpers

```python
import reinogent

model = reinogent.load_model("<model-slug>")
local_dir = reinogent.download_model("<model-slug>", dest_dir="./weights")
mcp_cfg = reinogent.get_mcp_config("<mcp-slug>")
result = reinogent.run_agent("<agent-id>", "Hello", token="<your-token>")
is_valid = reinogent.verify_signature(body, x_reino_signature, x_reino_timestamp, SECRET_KEY)
```
