> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.runtimes.llm guard runtime

<a id="camel.runtimes.llm_guard_runtime" />

<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime" />

## LLMGuardRuntime

```python theme={"system"}
class LLMGuardRuntime(BaseRuntime):
```

A runtime that evaluates the risk level of functions using
a language model.

**Parameters:**

* **prompt** (str): The prompt to use for the language model. (default: :obj:`GUARDPROMPT`)
* **model** (BaseModelBackend): The language model to use. (default: :obj: `None`)
* **verbose** (bool): Whether to print verbose output. (default: :obj: `False`)

<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    prompt: str = GUARDPROMPT,
    model: Optional[BaseModelBackend] = None,
    verbose: bool = False
):
```

<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.add" />

### add

```python theme={"system"}
def add(
    self,
    funcs: Union[FunctionTool, List[FunctionTool]],
    threshold: int = 2
):
```

Add a function or list of functions to the runtime.

**Parameters:**

* **funcs** (FunctionTool or List\[FunctionTool]): The function or list of functions to add.
* **threshold** (int): The risk threshold for functions. (default: :obj:`2`)

**Returns:**

LLMGuardRuntime: The current runtime.

<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.cleanup" />

### cleanup

```python theme={"system"}
def cleanup(self):
```

No-op; LLMGuardRuntime does not hold external resources.

<a id="camel.runtimes.llm_guard_runtime.LLMGuardRuntime.reset" />

### reset

```python theme={"system"}
def reset(self):
```

Resets the runtime to its initial state.
