# OllamaModelResource Constructors

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

A resource that represents an ollama model.

## OllamaModelResource(string, string, IOllamaResource)

- Name: `Constructor(string, string, IOllamaResource)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ollama/OllamaModelResource.cs#L15-L30)

A resource that represents an ollama model.

```csharp
public class OllamaModelResource
{
    public OllamaModelResource(
        string name,
        string modelName,
        IOllamaResource parent)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name for the resource.
- `modelName` (`string`)
  The name of the LLM model, can include a tag.
- `parent` ([IOllamaResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/iollamaresource.md))
  The [OllamaResource](/reference/api/csharp/communitytoolkit.aspire.hosting.ollama/ollamaresource.md) parent.
