kikocis/llama-stack public
| 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 | |
| 7 | from typing import Any, List, Tuple |
| 8 | |
| 9 | from llama_stack.distribution.datatypes import Api |
| 10 | |
| 11 | |
| 12 | async 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 |