# ChatGptChoiceExtensions.GetFunctionCall method

Gets the first function call of the message, if any.

```csharp
public static ChatGptFunctionCall? GetFunctionCall(this ChatGptChoice choice)
```

## Return Value

The first function call of the message, if any.

## See Also

* class [ChatGptFunctionCall](../../ChatGptNet.Models/ChatGptFunctionCall.md)
* class [ChatGptChoice](../../ChatGptNet.Models/ChatGptChoice.md)
* class [ChatGptChoiceExtensions](../ChatGptChoiceExtensions.md)
* namespace [ChatGptNet.Extensions](../../ChatGptNet.md)

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