Core types and pure functions for Zeta MLX
Project description
zeta-mlx-core
Core types and pure functions for Zeta MLX platform.
Installation
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zeta_mlx_core-0.3.2.tar.gz
(8.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zeta_mlx_core-0.3.2.tar.gz.
File metadata
- Download URL: zeta_mlx_core-0.3.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c675e907554fb9ded461aa398fff47bb9f67993b1b13abcafc62d27b69d37ce
|
|
| MD5 |
39aef701689f07ed8cea71c5b4e7edab
|
|
| BLAKE2b-256 |
39f28d69b460833429c46ae144156081e50e74460b523db8398cdb4e56820a2b
|
File details
Details for the file zeta_mlx_core-0.3.2-py3-none-any.whl.
File metadata
- Download URL: zeta_mlx_core-0.3.2-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.0 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06b90ca35ab31c6a01e96f8710a22e85db22b599b3f6f10985e96c0c65786562
|
|
| MD5 |
638a72d2a33d53f0d3f42cc586939106
|
|
| BLAKE2b-256 |
7321b641b8e7c453a6bbc2b7680a53f4ae9eacad0ed4493708dcb435550842cb
|