Metadata-Version: 2.4
Name: lyzr-kit
Version: 0.1.0
Summary: Python SDK for managing AI agents, tools, and features via the Lyzr platform
Project-URL: Homepage, https://github.com/LyzrCore/lyzr-kit
Project-URL: Documentation, https://github.com/LyzrCore/lyzr-kit
Project-URL: Repository, https://github.com/LyzrCore/lyzr-kit
Author-email: Lyzr <support@lyzr.ai>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,ai,llm,lyzr
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic>=2.0
Requires-Dist: python-dotenv>=1.0
Requires-Dist: pyyaml>=6.0
Requires-Dist: rich>=13.0
Requires-Dist: typer>=0.9
Provides-Extra: dev
Requires-Dist: mypy>=1.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Description-Content-Type: text/markdown

# Lyzr Kit

A Python SDK for managing AI agents via the Lyzr platform.

## Installation

```bash
pip install lyzr-kit
```

## Quick Start

### 1. Authenticate

```bash
lk auth
```

Enter your Lyzr API key when prompted. Get your API key from [Lyzr Studio](https://studio.lyzr.ai).

### 2. List Available Agents

```bash
lk agent ls
```

### 3. Deploy an Agent

```bash
lk agent get chat-agent
```

This will:
- Create the agent on the Lyzr platform
- Save the configuration to `local-kit/agents/chat-agent.yaml`
- Output URLs for the Platform, Chat interface, and API endpoint

### 4. Modify and Update

Edit `local-kit/agents/chat-agent.yaml`, then:

```bash
lk agent set chat-agent
```

## CLI Reference

```bash
lk auth                    # Save API key to .env
lk agent ls                # List all agents
lk agent get <id>          # Deploy agent to platform
lk agent set <id>          # Update agent on platform
```

Shorthand: `lk a ls`, `lk a get <id>`, `lk a set <id>`

## Built-in Agents

| ID | Name | Category |
|----|------|----------|
| `chat-agent` | Chat Assistant | chat |
| `qa-agent` | Q&A Agent | qa |
| `email-composer` | Email Composer | chat |
| `code-reviewer` | Code Reviewer | qa |
| `summarizer` | Text Summarizer | qa |
| `translator` | Language Translator | qa |
| `task-planner` | Task Planner | chat |
| `data-analyst` | Data Analyst | qa |
| `sql-expert` | SQL Expert | qa |
| `research-assistant` | Research Assistant | chat |
| `content-writer` | Content Writer | chat |
| `customer-support` | Customer Support Agent | chat |

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `LYZR_API_KEY` | Yes | API key for Lyzr platform |
| `LYZR_USER_ID` | No | User ID for marketplace features |
| `LYZR_MEMBERSTACK_TOKEN` | No | Token for marketplace app creation |

## Storage

| Directory | Purpose |
|-----------|---------|
| `local-kit/agents/` | Your deployed agent configurations |
| `.env` | API credentials (created by `lk auth`) |

## Development

```bash
# Install with dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Run linter
ruff check src/

# Type check
mypy src/
```

## License

MIT
