Add your description here
Project description
Sucrose
Inspired by fructose
https://github.com/bananaml/fructose, but uses the ollama python client. Supports pydantic
models.
pip install sucrose
from sucrose import Sucrose
ai = Sucrose()
@ai
def describe(animals: list[str]) -> str:
"""
Given a list of animals, use one word that'd describe them all.
"""
...
description = describe(["dog", "cat", "parrot", "goldfish"])
print(description) # -> "pets" type: str
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
sucrose_ollama-0.1.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for sucrose_ollama-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4064891e7a0b762b45eaa48cdfd494a7fe2b8eb91a3d7528678f38d735794334 |
|
MD5 | 4ede17ece0cc1a6bb7263b06f52fe184 |
|
BLAKE2b-256 | 1996ea07e2e364ef1aaf2f05dba8996bd29d8a4e3d4b5529af9fb582369683e2 |