MadcowD / ell

A language model programming library.
http://docs.ell.so/
MIT License
5.32k stars 313 forks source link

lexical closures without ell funcs #188

Open MadcowD opened 2 months ago

MadcowD commented 2 months ago

we actually might be able to entirely drop functional syntax and keep versioning in a future of ell btw

potential future to do this

ell.simple(model="gpt-4o", messages=["hello there"])
# > "hello back to you!"

and then do

inspect.get_caller()._cframe

then get the closure of the calling frame.

automatically name a prompt by its calling frame & coalesce by calling frame etc. its some real fucked shit

MadcowD commented 2 months ago

this is related to ramblings on ell.chat & ell.function().