# OllamaExecutableResource Methods

- Package: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama.md)
- Type: [OllamaExecutableResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/ollamaexecutableresource.md)
- Kind: `Methods`
- Members: `1`

A resource that represents an Ollama executable resource.

## AddModel(string)

- Name: `AddModel(string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaExecutableResource.cs#L48-L53)

Adds a model to the list of models to download on initial startup.

```csharp
public class OllamaExecutableResource
{
    public void AddModel(
        string modelName)
    {
        // ...
    }
}
```

## Parameters

- `modelName` (`string`)
  The name of the model
