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
feat(protocols): add new protocols for enhanced functionality
- Introduced several new protocols including HasAddListenerProtocol, HasArrowStoreProtocol, HasErrorsProtocol, HasNameProtocol, HasNotifiesProtocol, HasRowcountProtocol, HasSqlStateProtocol, HasSqliteErrorProtocol, HasValueProtocol, and HasTypeCodeProtocol.
- Updated existing protocols to improve type safety and functionality.
- Enhanced ReadableProtocol to accept an optional size parameter for the read method.
refactor(storage): simplify row count handling in SyncStoragePipeline
- Removed unnecessary checks for has_arrow_table_stats when determining row counts in SyncStoragePipeline methods.
- Streamlined the logic for processing rows in both synchronous and asynchronous storage pipelines.
fix(module_loader): improve import_string error handling
- Refined the import_string function to handle attribute access more gracefully, reducing the likelihood of unhandled exceptions.
refactor(schema): optimize type checking and field access
- Improved type guards for dataclass and attrs instances, enhancing performance and readability.
- Simplified field access logic in extract_dataclass_fields and related functions.
test(adk): add integration tests for AioSQLite and SQLite memory stores
- Implemented comprehensive tests for memory store operations including insert, search, delete by session, and delete older than.
- Ensured that memory records are correctly handled and deduplicated.
test(unit): add unit tests for ADK memory converters
- Created tests for event and session conversion functions to validate correct behavior and output.
chore(tests): remove redundant has_attr tests
- Eliminated outdated tests for has_attr function, focusing on more relevant type guard tests.
Copy file name to clipboardExpand all lines: docs/extensions/adk/index.rst
+23-16Lines changed: 23 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,18 @@ Google ADK Extension
25
25
migrations
26
26
schema
27
27
28
-
Sessionand event storage for the Google Agent Development Kit (ADK) using SQLSpec database adapters.
28
+
Session, event, and memory storage for the Google Agent Development Kit (ADK) using SQLSpec database adapters.
29
29
30
30
Overview
31
31
========
32
32
33
-
The SQLSpec ADK extension provides persistent storage for `Google Agent Development Kit <https://github.com/google/genai>`_ sessionsand events, enabling stateful AI agent applications with database-backed conversation history.
33
+
The SQLSpec ADK extension provides persistent storage for `Google Agent Development Kit <https://github.com/google/genai>`_ sessions, events, and long-term memory entries, enabling stateful AI agent applications with database-backed conversation history and recall.
34
34
35
35
This extension implements ADK's ``BaseSessionService`` protocol, allowing AI agents to store and retrieve:
36
36
37
37
- **Session State**: Persistent conversation context and application state
38
38
- **Event History**: Complete record of user/assistant interactions
39
+
- **Long-term Memory**: Searchable memory entries extracted from completed sessions
39
40
- **Multi-User Support**: Isolated sessions per application and user
40
41
- **Type-Safe Storage**: Full type safety with TypedDicts and validated records
41
42
@@ -149,25 +150,30 @@ The extension follows a layered architecture:
0 commit comments