Fix sample memory impl

This commit is contained in:
Ashwin Bharambe 2024-10-02 10:13:09 -07:00
parent 335dea849a
commit 227b69e6e6

View file

@ -9,10 +9,17 @@ from .config import SampleConfig
from llama_stack.apis.memory import * # noqa: F403
from llama_stack.distribution.datatypes import RoutableProvider
class SampleMemoryImpl(Memory):
class SampleMemoryImpl(Memory, RoutableProvider):
def __init__(self, config: SampleConfig):
self.config = config
async def validate_routing_keys(self, routing_keys: list[str]) -> None:
# these are the memory banks the Llama Stack will use to route requests to this provider
# perform validation here if necessary
pass
async def initialize(self):
pass