Elffuss BraidHub

kikocis/llama-stack public

22356ba7a140 · 518 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 .config import SafetyConfig
8
9
10async def get_provider_impl(config: SafetyConfig, _deps):
11 from .safety import MetaReferenceSafetyImpl
12
13 assert isinstance(config, SafetyConfig), f"Unexpected config type: {type(config)}"
14
15 impl = MetaReferenceSafetyImpl(config)
16 await impl.initialize()
17 return impl