Metadata-Version: 2.4
Name: watsonx-agent-deploy
Version: 0.1.2
Summary: Deploy multiple AI agents to watsonx.ai at once
Author-email: Ishan Singh <ishans2404@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/ishans2404/watsonx-agent-deploy
Project-URL: Issues, https://github.com/ishans2404/watsonx-agent-deploy/issues
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: python-dotenv>=1.0.0
Requires-Dist: ibm-watsonx-ai-cli
Requires-Dist: tomlkit>=0.11.0
Requires-Dist: click>=8.0.0
Dynamic: license-file

# Watsonx Agent Deploy

Simple CLI tool to deploy multiple AI agents to IBM watsonx.ai

## Installation

```bash
pip install watsonx-agent-deploy
```

## Quick Start

1. **Generate agent folders** using the IBM CLI template:

   ```bash
   watsonx‑ai template new "base/langgraph‑react‑agent" my-agent
   ```

2. **Create a `.env` file** with:

   ```text
   WATSONX_APIKEY=your_api_key_here
   WATSONX_URL=https://your-watsonx-url.com
   SPACE_ID=your_space_id
   ```

3. **Deploy agents** by running:

   ```bash
   watsonx-deploy
   ```

## Required File Structure

Your project directory (current or specified via `--config-dir`) should follow this layout:

```
your-project-root/
├── .env                          # contains WATSONX_APIKEY, WATSONX_URL, SPACE_ID
├── my-agent/
│   └── config.toml              # agent-specific configuration
├── another-agent/
│   └── config.toml
├── sample-agent/
│   └── config.toml
```

### Notes:

* **Agent folders** must end with `'agent'` (e.g. `my-agent`), else they will be ignored.
* Each agent folder **must contain** a valid `config.toml`.
* The `.env` file must reside in the **root of your deployment directory** (or be specified via `--env-file`).

## Usage Examples

```bash
# Deploy agents from current default directory
watsonx-deploy

# Use a custom .env file
watsonx-deploy --env-file path/to/.env

# Deploy engines from a specific directory
watsonx-deploy --config-dir path/to/agents

# Enable verbose logging for troubleshooting
watsonx-deploy --verbose
```

## Requirements

* Python 3.11+
* Proper `.env` with required credentials
* Agent folders must follow naming and structure rules above

---

## License
MIT
