Metadata-Version: 2.4
Name: ai-decision-council
Version: 1.1.0
Summary: Multi-model council orchestration with CLI and integration bridge
Project-URL: Homepage, https://github.com/pomoika/hackai26-pre-code
Project-URL: Repository, https://github.com/pomoika/hackai26-pre-code
Project-URL: Issues, https://github.com/pomoika/hackai26-pre-code/issues
Author: LLM Council Contributors
License: MIT License
        
        Copyright (c) 2026 LLM Council Contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: ai,cli,fastapi,llm,openrouter,orchestration
Classifier: Development Status :: 4 - Beta
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
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: api
Requires-Dist: fastapi>=0.115.0; extra == 'api'
Requires-Dist: pydantic>=2.9.0; extra == 'api'
Requires-Dist: uvicorn[standard]>=0.32.0; extra == 'api'
Provides-Extra: dev
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# ai-decision-council

`ai-decision-council` is a plug-and-play Python SDK for multi-model council workflows:

1. Collect first-pass answers from multiple models.
2. Run peer ranking across those answers.
3. Synthesize one final decision-style response.

Default behavior uses a curated set of **5 models** (configurable from 2 to 20).

## Install

```bash
pip install ai-decision-council
```

## 5-minute startup

```bash
# Use your OpenRouter API key here.
export LLM_COUNCIL_API_KEY="..."
ai-decision-council doctor
ai-decision-council run --prompt "Explain CAP theorem in simple terms"
```

## 5-minute API integration

```bash
pip install "ai-decision-council[api]"
export LLM_COUNCIL_API_KEY="..."
export LLM_COUNCIL_REFERENCE_API_TOKEN="replace-with-long-random-token"
ai-decision-council api serve
```

Then call `POST /v1/conversations` on `http://localhost:8001`.

## Python integration

```python
from ai_decision_council import Council

council = Council.from_env()
result = council.run_sync("Summarize vector databases in 5 bullets")
print(result.final_response)
```

## CLI

```bash
ai-decision-council doctor
ai-decision-council models --defaults
ai-decision-council models --defaults --count 7
ai-decision-council init
ai-decision-council init --api fastapi
ai-decision-council api bootstrap --path .
ai-decision-council api openapi --output ./openapi.json
ai-decision-council api sdk --output-dir ./sdk
ai-decision-council run --prompt "Your prompt" --json
```

Legacy alias remains supported:

```bash
llm-council ...
```

## Core configuration

- `LLM_COUNCIL_API_KEY` (preferred; your OpenRouter API key)
- `LLM_COUNCIL_MODELS` (explicit model list)
- `LLM_COUNCIL_MODEL_COUNT` (default 5)
- `LLM_COUNCIL_CHAIRMAN_MODEL`
- `LLM_COUNCIL_TITLE_MODEL`
- `LLM_COUNCIL_API_URL`
- `LLM_COUNCIL_REFERENCE_API_TOKEN` (required for packaged API auth)

Current provider scope is OpenRouter-first. Fallback key support: `OPENROUTER_API_KEY`.

## Documentation

- `docs/quickstart.md`
- `docs/python-integration.md`
- `docs/cli-usage.md`
- `docs/framework-snippets.md`
- `docs/troubleshooting.md`
- `docs/migration.md`
- `docs/openapi.json`
