# ToolDescription

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utils/ernie_functions/ToolDescription)

Representation of a callable function to the Ernie API.

## Signature

```python
ToolDescription()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    type: Literal['function'],
    function: FunctionDescription,
)
```

| Name | Type |
|------|------|
| `type` | `Literal['function']` |
| `function` | `FunctionDescription` |


## Properties

- `type`
- `function`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/utils/ernie_functions.py#L18)