Metadata-Version: 2.4
Name: yaagents-cli
Version: 0.3.0
Summary: YAAgents CLI — Agentic REST Profile v0.3 validator
Project-URL: Homepage, https://github.com/ai-mpathyminds/yaagents
Project-URL: Supports-YAAgents-Profile, https://github.com/ai-mpathyminds/yaagents/blob/v0.3.0/spec/agentic-rest-profile.md
License: Apache-2.0
License-File: LICENSE
Keywords: REST,agentic,cli,profile-v0.3,validator,yaagents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: <4,>=3.11
Requires-Dist: jsonschema>=4.23
Requires-Dist: pyyaml>=6.0
Provides-Extra: test
Requires-Dist: pip-audit>=2.7; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# yaagents-cli

**Supports-YAAgents-Profile: v0.3**

CLI validator for the [YAAgents Agentic REST Profile](https://github.com/ai-mpathyminds/yaagents).

## Install

```bash
pip install yaagents-cli==0.3.0
```

## Usage

### `validate-response`

Validate a response body JSON file against the v0.1 schema. The media type is
inferred from the body's `type` discriminator field.

```bash
# Human-readable
yaagents validate-response response.json

# Machine-readable JSON
yaagents validate-response response.json --json
```

**Exit codes:** `0` = PASS, `1` = FAIL or error, `2` = bad usage.

**Supported `type` values:**

| `type` | Schema |
|--------|--------|
| `operation_accepted` | `operation-accepted.schema.json` |
| `clarification_required` | `clarification-required.schema.json` |
| `validation_failed` | `validation-failed.schema.json` |
| `approval_required` | `approval-required.schema.json` |
| `conflict` | `conflict.schema.json` |
| `forbidden` / `failed_dependency` / `error` | `agentic-error.schema.json` |

## License

Source-available. See [LICENSE](../LICENSE).
