-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Create new merged Storage #2294
base: main
Are you sure you want to change the base?
Conversation
…ps://github.com/agno-agi/agno into merge-agentstorage-and-workflowsstorage-ag-2781
…entstorage-and-workflowsstorage-ag-2781
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 this file be included?
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.
Nope!
@@ -1756,7 +1764,7 @@ def read_from_storage(self) -> Optional[AgentSession]: | |||
Optional[AgentSession]: The loaded AgentSession or None if not found. | |||
""" | |||
if self.storage is not None and self.session_id is not None: | |||
self.agent_session = self.storage.read(session_id=self.session_id) | |||
self.agent_session = cast(AgentSession, self.storage.read(session_id=self.session_id)) |
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 a type hint like
self.agent_session: AgentSession = ..
do the same thing here as casting?
Description
We are merging AgentStorage and WorkflowStorage. This is to make room for TeamStorage and to provide better feature coverage for workflows.
Type of change
Please check the options that are relevant:
Checklist
./scripts/format.sh
and./scripts/validate.sh
to ensure code is formatted and linted.Additional Notes
Include any deployment notes, performance implications, security considerations, or other relevant information (e.g., screenshots or logs if applicable).