Elffuss BraidHub

kikocis/llama-stack public

842c3e3bbdd0 · 539 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 abc import ABC, abstractmethod
8from typing import List
9
10from llama_stack.apis.inference import Message
11
12
13class BaseTool(ABC):
14 @abstractmethod
15 def get_name(self) -> str:
16 raise NotImplementedError
17
18 @abstractmethod
19 async def run(self, messages: List[Message]) -> List[Message]:
20 raise NotImplementedError