Elffuss BraidHub

kikocis/llama-stack public

main · 1.4 KiBRawPermalink
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 List
8
9from llama_stack.distribution.datatypes import * # noqa: F403
10from llama_stack.providers.utils.kvstore import kvstore_dependencies
11
12
13def available_providers() -> List[ProviderSpec]:
14 return [
15 InlineProviderSpec(
16 api=Api.agents,
17 provider_id="meta-reference",
18 pip_packages=[
19 "matplotlib",
20 "pillow",
21 "pandas",
22 "scikit-learn",
23 ]
24 + kvstore_dependencies(),
25 module="llama_stack.providers.impls.meta_reference.agents",
26 config_class="llama_stack.providers.impls.meta_reference.agents.MetaReferenceAgentsImplConfig",
27 api_dependencies=[
28 Api.inference,
29 Api.safety,
30 Api.memory,
31 ],
32 ),
33 remote_provider_spec(
34 api=Api.agents,
35 adapter=AdapterSpec(
36 adapter_id="sample",
37 pip_packages=[],
38 module="llama_stack.providers.adapters.agents.sample",
39 config_class="llama_stack.providers.adapters.agents.sample.SampleConfig",
40 ),
41 ),
42 ]