Excited by the ability to run custom python code (but limited by plan even tier 2), but how do I get this to the chat space? I saw the more complex how to which returns from make API. What if we just want to do some local stuff and return something without a network call.
import requests
from datetime import date
def insert_the_date(email: str, key: str):
"""
Gives todays date to the LLM
Args:
email (string): Users email address
key (string): test variable
"""
# Insert your PYTHON code below. You can access environment variables using os.environ[].
# Currently, only the requests library is supported, but more libraries will be available soon.
# Use print statements or return values to display results to the user.
# If you save a png, pdf, csv, jpg, webp, gif, or html file in the root directory, it will be automatically displayed to the user.
# You do not have to call this function as the bot will automatically call and fill in the parameters.
payload={
"key":key,
"secretemail":email,
"date":date.today()
}
return payload