Elffuss BraidHub

kikocis/llama-stack public

566afbf5da2b · 504 BRawPermalink
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the terms described in the LICENSE file in
5# the root directory of this source tree.
6
7from typing import Any, List, Tuple
8
9from llama_stack.distribution.datatypes import Api
10
11
12async def get_router_impl(inner_impls: List[Tuple[str, Any]], deps: List[Api]):
13 from .memory import MemoryRouterImpl
14
15 impl = MemoryRouterImpl(inner_impls, deps)
16 await impl.initialize()
17 return impl