> ## 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.agents.tool agents.hugging face tool agent

<a id="camel.agents.tool_agents.hugging_face_tool_agent" />

<a id="camel.agents.tool_agents.hugging_face_tool_agent.HuggingFaceToolAgent" />

## HuggingFaceToolAgent

```python theme={"system"}
class HuggingFaceToolAgent(BaseToolAgent):
```

Tool agent for calling HuggingFace models. This agent is a wrapper
around agents from the `transformers` library. For more information
about the available models, please see the `transformers` documentation
at [https://huggingface.co/docs/transformers/transformers\_agents](https://huggingface.co/docs/transformers/transformers_agents).

**Parameters:**

* **name** (str): The name of the agent. \*args (Any): Additional positional arguments to pass to the underlying Agent class.
* **remote** (bool, optional): Flag indicating whether to run the agent remotely. (default: :obj:`True`) \*\*kwargs (Any): Additional keyword arguments to pass to the underlying Agent class.

<a id="camel.agents.tool_agents.hugging_face_tool_agent.HuggingFaceToolAgent.__init__" />

### **init**

```python theme={"system"}
def __init__(
    self,
    name: str,
    *args: Any,
    **kwargs: Any
):
```

<a id="camel.agents.tool_agents.hugging_face_tool_agent.HuggingFaceToolAgent.reset" />

### reset

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

Resets the chat history of the agent.

<a id="camel.agents.tool_agents.hugging_face_tool_agent.HuggingFaceToolAgent.step" />

### step

```python theme={"system"}
def step(self, *args: Any, **kwargs: Any):
```

Runs the agent in single execution mode.

**Parameters:**

* **remote** (bool, optional): Flag indicating whether to run the agent remotely. Overrides the default setting. (default: :obj:`None`) \*\*kwargs (Any): Keyword arguments to pass to the agent.

**Returns:**

str: The response from the agent.

<a id="camel.agents.tool_agents.hugging_face_tool_agent.HuggingFaceToolAgent.chat" />

### chat

```python theme={"system"}
def chat(self, *args: Any, **kwargs: Any):
```

Runs the agent in a chat conversation mode.

**Parameters:**

* **remote** (bool, optional): Flag indicating whether to run the agent remotely. Overrides the default setting. (default: :obj:`None`) \*\*kwargs (Any): Keyword arguments to pass to the agent.

**Returns:**

str: The response from the agent.
