Skip to content

paul-english/sucrose

Repository files navigation

Sucrose

Inspired by fructose https://github.com/bananaml/fructose, but uses the ollama python client. Supports pydantic models.

pip install sucrose_ollama
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published