autogen/dotnet/website/articles/Function-call-with-ollama-and-litellm.md
Install AutoGen and AutoGen.SourceGenerator In your project, install the AutoGen and AutoGen.SourceGenerator package using the following command:  ```bash dotnet add package AutoGen dotnet add package AutoGen.SourceGenerator ```  The `AutoGen.SourceGenerator` package is used to automatically generate type-safe `FunctionContract` instead of manually defining them. For more information, please check out [Create type-safe function](Create-type-safe-function-call.md).  And in your project file, enable structural xml document support by setting the `GenerateDocumentationFile` property to `true`:  ```xml <PropertyGroup>     <!-- This enables structural xml document support -->     <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> ``` 