Replies: 1 comment 5 replies
-
What about using import datetime
import os
from griptape.drivers.assistant.griptape_cloud import GriptapeCloudAssistantDriver
from griptape.structures import Pipeline
from griptape.tasks import AssistantTask
pipeline = Pipeline(
tasks=[
AssistantTask(
input="Metadata:\nDate: {{date}}\nInstructions\n{{args[0]}}",
context={"date": datetime.datetime.now().isoformat()},
assistant_driver=GriptapeCloudAssistantDriver(
api_key=os.environ["GT_CLOUD_API_KEY"],
assistant_id="...",
),
),
]
)
pipeline.run("Write me a poem that uses today's date.")
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we have a powerful DateTime tool that you can give to an assistant or agent to find out the current Date and Time. Wondering if there might be a better way to automatically include the current date and time with an assistant to not need to provide a tool?
Maybe it could be part of the system prompt?
Beta Was this translation helpful? Give feedback.
All reactions