---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/ollama/types/type-aliases/OllamaFormat.md
description: >-
  Native `format` control. `'json'` requests free-form JSON; a {@link
  JsonSchema} object requests schema-constrained structured output (the model's
  `content` is then a JSON string matching it).
---

# Type Alias: OllamaFormat

```ts
type OllamaFormat = "json" | JsonSchema;
```

Defined in: [src/batteries/llm/ollama/types.ts:80](https://github.com/NHTIO/ADK/blob/v1.20261003.0/src/src/batteries/llm/ollama/types.ts#L80)

Native `format` control. `'json'` requests free-form JSON; a [JsonSchema](../../../../interfaces/JsonSchema.md) object requests
schema-constrained structured output (the model's `content` is then a JSON string matching it).
