> ## 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.utils.tool result

<a id="camel.utils.tool_result" />

<a id="camel.utils.tool_result.ToolResult" />

## ToolResult

```python theme={"system"}
class ToolResult:
```

Special result type for tools that can return images along with text.

This class is used by ChatAgent to detect when a tool returns visual
content that should be included in the conversation context.

<a id="camel.utils.tool_result.ToolResult.__init__" />

### **init**

```python theme={"system"}
def __init__(self, text: str, images: Optional[List[str]] = None):
```

Initialize a tool result.

**Parameters:**

* **text** (str): The text description or result of the tool operation.
* **images** (Optional\[List\[str]]): List of base64-encoded images to include in the conversation context. Images should be encoded as "data:image/\{format};base64,\{data}" format.

<a id="camel.utils.tool_result.ToolResult.__str__" />

### **str**

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

Return the text representation of the result.

<a id="camel.utils.tool_result.ToolResult.__repr__" />

### **repr**

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

Return a detailed representation of the result.
