Jeremiah
def
of a function you wish you had⦠and then you call it.
š To get this magic, just add Marvinās @ai_fn
decorator. Hereās an example:
from marvin import ai_fn
@ai_fn
def spam_rating(email_body: str) -> int:
"""
Returns a number between 0 and 100
that represents how likely the email is spam
"""
spam_rating("Hey, just following up about dinner tomorrow.") # 17
spam_rating("Hi, I'm Nigerian prince and I really need your help.") # 95
āļø Obviously, this is cool. But more importantly, it aligns with Prefectās product mission to eliminate negative engineering and bring engineers as close as possible to their objectives. Give Marvin a star on GitHub and stay tuned ā AI functions are just the beginning of what it can do.
š¬ Marvinās community is forming in Discord. Join us there if building with AI is interesting to you!
š Happy engineering!Marvin
03/30/2023, 9:36 PM