Metadata-Version: 2.4
Name: zeta-mlx-core
Version: 0.3.2
Summary: Core types and pure functions for Zeta MLX
Keywords: mlx,llm,apple-silicon,inference
Author: ZetaLab
Author-email: zeta9044@gmail.com
Requires-Python: >=3.10,<3.13
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: pydantic (>=2.9,<3.0)
Requires-Dist: pydantic-settings (>=2.6,<3.0)
Requires-Dist: pyyaml (>=6.0,<7.0)
Project-URL: Homepage, https://github.com/zeta9044/zeta-mlx
Project-URL: Repository, https://github.com/zeta9044/zeta-mlx
Description-Content-Type: text/markdown

# zeta-mlx-core

Core types and pure functions for Zeta MLX platform.

## Installation

```bash
pip install zeta-mlx-core
```

## Features

- **Pure Domain Types**: Message, GenerationParams, ToolDefinition
- **Result Monad**: Railway-oriented programming with `Result[T, E]`
- **Validation**: Pure validation functions
- **Configuration**: YAML-based config management

## Usage

```python
from zeta_mlx.core import (
    Message, GenerationParams, Result, Success, Failure,
    Temperature, TopP, MaxTokens,
)

# Create a message
msg = Message(role="user", content="Hello!")

# Create generation parameters
params = GenerationParams(
    max_tokens=MaxTokens(1024),
    temperature=Temperature(0.7),
    top_p=TopP(0.9),
)

# Use Result for error handling
result: Result[str, str] = Success("Hello!")
```

## Links

- [GitHub](https://github.com/zeta9044/zeta-mlx)
- [Documentation](https://github.com/zeta9044/zeta-mlx#readme)

