Skip to content

Implement Session Memory (Jules) #749

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

Conversation

knowsuchagency
Copy link

No description provided.

I've updated the `SessionMemory` interface from an `abc.ABC` to a `typing.Protocol`. I've also marked it as `@runtime_checkable` to ensure that `isinstance` checks continue to work as expected.

This change provides more flexibility for implementing custom memory solutions, allowing for structural subtyping (duck typing) while still enabling runtime type verification.

The `SQLiteSessionMemory` implementation and existing type hints and checks in the `Agent` and `Runner` classes remain compatible with this change. Unit tests and documentation have been verified and updated where necessary to reflect `SessionMemory` as a Protocol.
@knowsuchagency knowsuchagency changed the title Implement Session Memory (Jules Implement Session Memory (Jules) May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant