# OllamaResource

- Module: [CommunityToolkit.Aspire.Hosting.Ollama](/reference/api/go/communitytoolkit.aspire.hosting.ollama.md)
- Version: `13.6.1`
- Kind: `interface`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

Represents an Ollama resource.

## Definition

```go
type OllamaResource interface{}
```

## Methods

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

- [AddHuggingFaceModel](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource/addhuggingfacemodel.md) -- `method` -- Adds a model from Hugging Face to the Ollama resource. Only models in GGUF format are supported.
  ```go
  AddHuggingFaceModel(name string, modelName string) OllamaModelResource
  ```
- [AddModel](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource/addmodel.md) -- `method` -- Adds a model to the Ollama resource.
  ```go
  AddModel(modelName string) OllamaModelResource
  ```
- [AddNamedModel](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource/addnamedmodel.md) -- `method` -- Adds a model to the Ollama resource.
  ```go
  AddNamedModel(name string, modelName string) OllamaModelResource
  ```
- [WithOpenWebUI](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaresource/withopenwebui.md) -- `method` -- Adds an Open WebUI container to the application model for administering Ollama. This version of the package defaults to the main tag of the Open WebUI container image.
  ```go
  WithOpenWebUI(options ...*WithOpenWebUIOptions) OllamaResource
  ```

## Applies to

- [`CommunityToolkit_Aspire_Hosting_OllamaOllamaResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/communitytoolkit-aspire-hosting-ollamaollamaresource.md)
- [`OllamaExecutableResource`](/reference/api/go/communitytoolkit.aspire.hosting.ollama/ollamaexecutableresource.md)
