# ChatGptResponseExtensions.GetToolCalls method

Gets the tool calls for the message of the first choice, if available.

```csharp
public static IEnumerable<ChatGptToolCall>? GetToolCalls(this ChatGptResponse response)
```

## See Also

* class [ChatGptToolCall](../../ChatGptNet.Models/ChatGptToolCall.md)
* class [ChatGptResponse](../../ChatGptNet.Models/ChatGptResponse.md)
* class [ChatGptResponseExtensions](../ChatGptResponseExtensions.md)
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md)

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