Metadata-Version: 2.5
Name: skyeai
Version: 0.1.1
Summary: Modular GenAI library with optional extras for building AI agents and intelligent applications
Project-URL: Homepage, https://github.com/ggiallo28/skye
Project-URL: Documentation, https://skye.readthedocs.io
Project-URL: Repository, https://github.com/ggiallo28/skye
Project-URL: Issues, https://github.com/ggiallo28/skye/issues
Author: Skye Team
License: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Provides-Extra: agents
Provides-Extra: all
Requires-Dist: asyncpg>=0.29; extra == 'all'
Requires-Dist: fastmcp-slim[client]>=4.0; extra == 'all'
Requires-Dist: redis>=5.0; extra == 'all'
Requires-Dist: rsa>=4.9; extra == 'all'
Requires-Dist: tiktoken>=0.5; extra == 'all'
Provides-Extra: all-providers
Requires-Dist: tiktoken>=0.5; extra == 'all-providers'
Provides-Extra: anthropic
Provides-Extra: auth
Requires-Dist: rsa>=4.9; extra == 'auth'
Provides-Extra: bedrock
Provides-Extra: cohere
Provides-Extra: embedding-providers
Requires-Dist: tiktoken>=0.5; extra == 'embedding-providers'
Provides-Extra: flows
Provides-Extra: google
Provides-Extra: guard
Provides-Extra: llm-providers
Requires-Dist: tiktoken>=0.5; extra == 'llm-providers'
Provides-Extra: mcp
Requires-Dist: fastmcp-slim[client]>=4.0; extra == 'mcp'
Provides-Extra: memory
Requires-Dist: redis>=5.0; extra == 'memory'
Provides-Extra: observe
Provides-Extra: openai
Provides-Extra: postgres
Requires-Dist: asyncpg>=0.29; extra == 'postgres'
Provides-Extra: prompts
Provides-Extra: providers
Requires-Dist: tiktoken>=0.5; extra == 'providers'
Provides-Extra: teams
Provides-Extra: tokens
Requires-Dist: tiktoken>=0.5; extra == 'tokens'
Provides-Extra: tools
Description-Content-Type: text/markdown

# Skye AI

**Modular GenAI library with optional extras**

Skye AI provides a foundational layer for building AI agents and intelligent applications with a Clean Architecture approach. The base package includes only interfaces and models, while all implementations are available as optional extras.

[![PyPI](https://img.shields.io/pypi/v/skyeai?label=PyPI)](https://pypi.org/project/skyeai/)
[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow)](https://opensource.org/licenses/MIT)
[![Documentation](https://img.shields.io/readthedocs/skye?label=Docs)](https://skye.readthedocs.io/)
[![Install size: 1.1 MB](https://img.shields.io/badge/Install%20size-1.1%20MB-2EA44F)](https://skye.readthedocs.io/en/latest/budgets/)
[![Built with Kiro](https://img.shields.io/badge/Built%20with-Kiro-790ECB)](https://kiro.dev)

## Features

- 🎯 **Provider-agnostic** - Unified interface for OpenAI, Anthropic, AWS Bedrock, Azure, and more
- 🧩 **Modular architecture** - Install only what you need via optional extras
- 🔒 **Type-safe** - Complete type hints, with validated dataclasses
- ⚡ **Async-first** - Both sync and async APIs throughout
- 🔄 **Load balancing** - Multiple routing strategies with automatic fallbacks
- 📊 **Observability** - Built-in telemetry, logging, and tracing
- 🛡️ **Safety filters** - Input/output validation and moderation
- 💾 **Memory systems** - Episodic and semantic memory support


## Install

```bash
pip install skyeai            # the base: messages, completion, errors, config, Ports (standard library only)
pip install skyeai[memory]    # add only what you need: tokens, auth, memory, postgres, mcp, ...
```

Every extra is optional and loaded lazily. All extras and install options: [getting started](https://skye.readthedocs.io/en/latest/getting-started/).

## Quick start

One call creates the client of a provider, in the style of `boto3.client`:

```python
import skye
from skye import UserMessage

# AWS credentials come from the usual sources: environment variables, ~/.aws or the instance role
client = skye.provider("bedrock", region="us-east-1")
response = client.complete(
    messages=[UserMessage(content="Hello!")],
    model="us.anthropic.claude-sonnet-4-5-20250929-v1:0",
)
print(response.content)
```

The same line works for every provider (`"openai"`, `"anthropic"`, `"bedrock"`, `"azure"`, `"google"`, `"cohere"`); for embeddings add `provider_type="embedding"`.
To balance several models with fallbacks, use the router: [router overview](https://skye.readthedocs.io/en/latest/router/overview/).

## Examples

Runnable examples are in [`examples/`](https://github.com/ggiallo28/skye/blob/main/examples/README.md), one folder per topic:

| Folder | What it shows |
|---|---|
| [`examples/basic`](https://github.com/ggiallo28/skye/tree/main/examples/basic) | quick start, async and streaming, configuration, completion requests |
| [`examples/providers`](https://github.com/ggiallo28/skye/blob/main/examples/providers/README.md) | OpenAI, Anthropic, Azure, Bedrock, Google, embeddings, multimodal, structured output, function calling, your own adapter |
| [`examples/routing`](https://github.com/ggiallo28/skye/blob/main/examples/routing/README.md) | the router: strategies, `.skye` configuration, fallbacks, health and usage |
| [`examples/capabilities`](https://github.com/ggiallo28/skye/blob/main/examples/capabilities/README.md) | local functions, remote APIs, function calling, the MCP client |
| [`examples/advanced`](https://github.com/ggiallo28/skye/blob/main/examples/advanced/README.md) | multimodal, structured output, function calling, streaming, prompt engineering, your own provider |
| [`examples/prompts`](https://github.com/ggiallo28/skye/tree/main/examples/prompts) | templates, few-shot examples, roles, multimodal prompts |
| [`examples/serverless`](https://github.com/ggiallo28/skye/tree/main/examples/serverless) | a handler that creates its client once, and a router with external state |

Every example is run offline against a fake network by `tests/examples`, so it cannot drift from the library.

## Documentation

The documentation is online at **[skye.readthedocs.io](https://skye.readthedocs.io)**, with one section per component. The same pages are in [`docs/`](https://skye.readthedocs.io/en/latest/) in the repository.

| Topic | Page |
|---|---|
| Getting started, install, quick start | [getting started](https://skye.readthedocs.io/en/latest/getting-started/) |
| Architecture and layers | [architecture](https://skye.readthedocs.io/en/latest/architecture/) |
| Core interfaces and configuration | [interfaces](https://skye.readthedocs.io/en/latest/base/interfaces/), [configuration](https://skye.readthedocs.io/en/latest/base/configuration/) |
| Providers, embeddings, multimodal, streaming | [provider guide](https://skye.readthedocs.io/en/latest/models/provider-guide/) |
| Function calling and capabilities | [function calling](https://skye.readthedocs.io/en/latest/tools/function-calling/) |
| Routing, `.skye` files, health, fallbacks | [router overview](https://skye.readthedocs.io/en/latest/router/overview/), [routing guide](https://skye.readthedocs.io/en/latest/router/routing-guide/) |
| Lazy loading and serverless deployment | [deployment](https://skye.readthedocs.io/en/latest/deployment/) |
| Size and load budgets | [budgets](https://skye.readthedocs.io/en/latest/budgets/) |
| Codename glossary | [glossary](https://skye.readthedocs.io/en/latest/glossary/) |
| Development: setup, tests, code quality | [development](https://skye.readthedocs.io/en/latest/development/) |
| Roadmap | [roadmap](https://skye.readthedocs.io/en/latest/roadmap/) |

How the project is specified: the requirements, the design and the decisions are in `.kiro/steering/` (`10-requirements.md`, `11-design.md`, `12-decisions.md`) and the per-component specs in `.kiro/specs/`.

## Contributing

See [CONTRIBUTING.md](https://github.com/ggiallo28/skye/blob/main/CONTRIBUTING.md). Fork, create a branch, make your changes with tests, run the code quality checks, and open a pull request.

Everyone taking part in the project follows the [Code of Conduct](https://github.com/ggiallo28/skye/blob/main/CODE_OF_CONDUCT.md).

## License

MIT License - see [LICENSE](https://github.com/ggiallo28/skye/blob/main/LICENSE) file for details.

## Support

- **Issues**: [GitHub Issues](https://github.com/ggiallo28/skye/issues)
- **Documentation**: [skye.readthedocs.io](https://skye.readthedocs.io)

## Acknowledgments

Skye AI is inspired by:
- **LangChain** - For pioneering LLM application frameworks
- **LiteLLM** - For provider abstraction patterns
- **Clean Architecture** - For architectural principles
- **Cedar** - For the policy model (principal, action, resource, context; default deny; forbid overrides permit)
