# ChatGptResponseExtensions.GetFunctionCall method

Gets or sets the function call for the message of the first choice, if available.

```csharp
public static ChatGptFunctionCall? GetFunctionCall(this ChatGptResponse response)
```

## See Also

* class [ChatGptFunctionCall](../../ChatGptNet.Models/ChatGptFunctionCall.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 -->
