Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,12 +21,9 @@ AGENT_ON = True
|
|
21 |
|
22 |
@tool
|
23 |
def time(text: str) -> str:
|
24 |
-
"""Returns today's date
|
25 |
-
|
26 |
-
|
27 |
-
and this function will always return today's \
|
28 |
-
date - any date mathematics should occur \
|
29 |
-
outside this function."""
|
30 |
return str(date.today())
|
31 |
|
32 |
def invoke(openai_api_key, prompt, agent_option):
|
|
|
21 |
|
22 |
@tool
|
23 |
def time(text: str) -> str:
|
24 |
+
"""Returns today's date. Use this for any questions related to knowing today's date.
|
25 |
+
The input should always be an empty string, and this function will always return today's date.
|
26 |
+
Any date mathematics should occur outside this function."""
|
|
|
|
|
|
|
27 |
return str(date.today())
|
28 |
|
29 |
def invoke(openai_api_key, prompt, agent_option):
|