Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

811 B
Raw Blame
<a id="camel.runtime.base"></a>

<a id="camel.runtime.base.BaseRuntime"></a>

## BaseRuntime

```python
class BaseRuntime(ABC):
```

An abstract base class for all CAMEL runtimes.

<a id="camel.runtime.base.BaseRuntime.__init__"></a>

### __init__

```python
def __init__(self):
```

<a id="camel.runtime.base.BaseRuntime.add"></a>

### add

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

Adds a new tool to the runtime.

<a id="camel.runtime.base.BaseRuntime.reset"></a>

### reset

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

Resets the runtime to its initial state.

<a id="camel.runtime.base.BaseRuntime.get_tools"></a>

### get_tools

```python
def get_tools(self):
```

Returns a list of all tools in the runtime.