Langfun

is a library that aims to make language models (LM) fun to work with. Its central principle is to enable seamless integration between natural language and programming by treating language as functions. Through the introduction of Object-Oriented Prompting, Langfun empowers users to prompt LLMs using objects and types, offering enhanced control and simplifying agent development

https://github.com/google/langfun

https://colab.research.google.com/github/google/langfun/blob/main/docs/notebooks/langfun101.ipynb