Elffuss BraidHub

kikocis/llama-stack public

9fefaaef1108 · 681 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 Dict
8
9from llama_stack.distribution.datatypes import Api, ProviderSpec
10
11from .config import MetaReferenceAgentsImplConfig
12
13
14async def get_provider_impl(
15 config: MetaReferenceAgentsImplConfig, deps: Dict[Api, ProviderSpec]
16):
17 from .agents import MetaReferenceAgentsImpl
18
19 impl = MetaReferenceAgentsImpl(
20 config,
21 deps[Api.inference],
22 deps[Api.memory],
23 deps[Api.safety],
24 )
25 await impl.initialize()
26 return impl