-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add alias to GriptapeCloudConversationMemoryDriver
#1237
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@api_key.validator # pyright: ignore[reportAttributeAccessIssue] | ||
def validate_api_key(self, _: Attribute, value: Optional[str]) -> str: | ||
if value is None: | ||
raise ValueError(f"{self.__class__.__name__} requires an API key") | ||
return value | ||
|
||
@property |
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.
Should we make this a @cached_property
since it's so expensive?
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.
my concern was that the store
method would invalidate the cached value, but i guess i can update the method to invalidate self._thread
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.
Yeah just call del self.thread
to invalidate.
Describe your changes
adding parameter
alias
toGriptapeCloudConversationMemoryDriver
so a thread can be fetched by the provided aliasIssue ticket number and link
📚 Documentation preview 📚: https://griptape--1237.org.readthedocs.build//1237/