You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by shhlife January 31, 2025
All of our Sample Structures have code to determine whether or not the structure is running in a managed template. Each one does this slightly differently.
It would be helpful for users if the Griptape Framework had a utility to do this in a consistent way so they didn't need to figure it out themselves.
I'm thinking of two things we might need.. one is to know whether or not the user is in a managed environment, and the other would be a way to automatically publish a FinishStructureRunEvent to the EventBus.
Currently you need to do something like this to find out if you're in the griptape cloud environment
Discussed in https://github.com/orgs/griptape-ai/discussions/1632
Originally posted by shhlife January 31, 2025
All of our Sample Structures have code to determine whether or not the structure is running in a managed template. Each one does this slightly differently.
It would be helpful for users if the Griptape Framework had a utility to do this in a consistent way so they didn't need to figure it out themselves.
I'm thinking of two things we might need.. one is to know whether or not the user is in a managed environment, and the other would be a way to automatically publish a FinishStructureRunEvent to the EventBus.
Currently you need to do something like this to find out if you're in the griptape cloud environment
then this to publish something to the event bus
Is there a way to make a Utility that makes this easier?
So the user could do something like:
The text was updated successfully, but these errors were encountered: