forked from phoenix-oss/llama-stack-mirror
Fix sample memory impl
This commit is contained in:
parent
335dea849a
commit
227b69e6e6
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue