BaseRuntime

class BaseRuntime(ABC):

An abstract base class for all CAMEL runtimes.

init

def __init__(self):

add

def add(
    self,
    funcs: Union[FunctionTool, List[FunctionTool]],
    *args: Any,
    **kwargs: Any
):

Adds a new tool to the runtime.

reset

def reset(self, *args: Any, **kwargs: Any):

Resets the runtime to its initial state.

get_tools

def get_tools(self):

Returns a list of all tools in the runtime.