

Fructose
1 like
Fructose is a python package to create a dependable, strongly-typed interface around an LLM call.
Cost / License
- Free
- Open Source
Platforms
- Python
- Self-Hosted

Fructose
1 like
Fructose information
No comments or reviews, maybe you want to be first?
Post comment/reviewWhat is Fructose?
Fructose is a python package to create a dependable, strongly-typed interface around an LLM call.
Just slap the @ai() decorator on a type-annotated function and call it as you would a function. It's lightweight, syntactic sugar.
The @ai() decorator introspects the function and builds a prompt to an LLM to perform the task whenever the function is invoked.
Fructose supports:
- args, kwargs, and return types
- primative types str bool int float
- compound types list dict tuple Enum Optional
- complex datatypes @dataclass
- nested types
- custom prompt templates
- local function calling