| 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 | from .bedrock import BedrockInferenceAdapter |
| 7 | from .config import BedrockConfig |
| 8 | |
| 9 | |
| 10 | async def get_adapter_impl(config: BedrockConfig, _deps): |
| 11 | assert isinstance(config, BedrockConfig), f"Unexpected config type: {type(config)}" |
| 12 | |
| 13 | impl = BedrockInferenceAdapter(config) |
| 14 | |
| 15 | await impl.initialize() |
| 16 | |
| 17 | return impl |