-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(utils): add utility function for configuring Event Bus with GTC #1651
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
42128a5
to
6ab59e4
Compare
6ab59e4
to
a82fc6e
Compare
Will apply to managed structure template after merge |
@@ -26,7 +26,7 @@ class GriptapeCloudEventListenerDriver(BaseEventListenerDriver): | |||
default=Factory(lambda: os.getenv("GT_CLOUD_BASE_URL", "https://cloud.griptape.ai")), | |||
kw_only=True, | |||
) | |||
api_key: str = field(default=Factory(lambda: os.environ["GT_CLOUD_API_KEY"]), kw_only=True) | |||
api_key: Optional[str] = field(default=Factory(lambda: os.getenv("GT_CLOUD_API_KEY")), kw_only=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does the validator require this to be typed Optional
even though it never will be None?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Pyright doesn't know about the validator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving tho
c5a1e8a
to
fd2c9b6
Compare
685d12b
to
6d7b2b7
Compare
Describe your changes
Added
griptape.utils.griptape_cloud_utils.configure_events
for automatically configuring theEventBus
for use with Griptape Cloud Managed Structures.Issue ticket number and link
Closes #1650