# ChatGptFunctionExtensions.ToTools method

Converts a list of [`ChatGptFunction`](../../ChatGptNet.Models/ChatGptFunction.md) to the corresponding tool definitions.

```csharp
public static IEnumerable<ChatGptTool> ToTools(this IEnumerable<ChatGptFunction> functions)
```

| parameter | description |
| --- | --- |
| functions | The list of [`ChatGptFunction`](../../ChatGptNet.Models/ChatGptFunction.md) |

## Return Value

The list of [`ChatGptTool`](../../ChatGptNet.Models/ChatGptTool.md) objects that contains the specified *functions*.

## See Also

* class [ChatGptTool](../../ChatGptNet.Models/ChatGptTool.md)
* class [ChatGptFunction](../../ChatGptNet.Models/ChatGptFunction.md)
* class [ChatGptFunctionExtensions](../ChatGptFunctionExtensions.md)
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md)

<!-- DO NOT EDIT: generated by xmldocmd for ChatGptNet.dll -->
