1 repository
Libraries that treat prompts as callable functions, encapsulating system instructions, user messages, and model parameters into reusable subroutines.
Distinguishing note: No candidate in the shortlist covers prompt-as-function programming; closest candidates are unrelated service models.
Explore 1 awesome GitHub repository matching artificial intelligence & ml · Prompt Programming Libraries. Refine with filters or upvote what's useful.
Ell is a Python library that treats prompts as callable functions, transforming a Python function into a language model program where the docstring defines the system message and the return value defines the user message. It provides a framework for writing language model programs that can accept and return images, audio, and text natively within message objects, and supports chaining multiple model calls into a single function for multi-step reasoning or test-time compute. The library decouples model selection from client instantiation through a registry that supports multiple provider backe
Defines a prompt as a callable Python function that combines system instructions, user messages, and model parameters into a reusable subroutine.