MemoryProvider optional methods #724

Closed
opened 2026-10-27 13:37:29 +00:00 by sam · 0 comments
Owner

Add optional methods to the MemoryProvider interface: system_prompt_block(), prefetch(query), queue_prefetch(query), sync_turn(user, assistant), handle_tool_call(name, args), shutdown(). These are defined as separate interface extensions that providers can opt into via type assertion.

Acceptance Criteria

Optional behavior is defined via separate sub-interfaces (e.g., PrefetchProvider, SyncTurnProvider, ShutdownProvider)
MemoryManager checks via type assertion at runtime which optional interfaces a provider implements
Each optional interface has clear doc comments
Default no-op behavior when a provider doesn't implement an optional interface


Imported from beads archie-core-1786637495012-199-eaacf19a · GitHub #220 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08

Add optional methods to the MemoryProvider interface: system_prompt_block(), prefetch(query), queue_prefetch(query), sync_turn(user, assistant), handle_tool_call(name, args), shutdown(). These are defined as separate interface extensions that providers can opt into via type assertion. ### Acceptance Criteria Optional behavior is defined via separate sub-interfaces (e.g., PrefetchProvider, SyncTurnProvider, ShutdownProvider) MemoryManager checks via type assertion at runtime which optional interfaces a provider implements Each optional interface has clear doc comments Default no-op behavior when a provider doesn't implement an optional interface --- _Imported from beads `archie-core-1786637495012-199-eaacf19a` · GitHub #220 · type task · priority P2 · created 2026-08-08 · closed 2026-08-08_
sam added the mediumtask labels 2026-10-27 13:37:29 +00:00
sam self-assigned this 2026-10-27 13:37:29 +00:00
sam closed this issue 2026-10-27 13:37:29 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#724