<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/GenerationGuide/minimum(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels15GenerationGuideVAASo9NSDecimalaRszlE7minimumyACyAEGAEFZ::OverloadGroup"
  },
  "title" : "minimum(_:)"
}
-->

# minimum(_:)

Enforces a minimum value.

```
static func minimum(_ value: Decimal) -> GenerationGuide<Decimal>
```

## Discussion

Use a `minimum` generation guide — whose bounds are inclusive — to ensure the model produces
a value greater than or equal to some minimum value. For example, you can specify that all characters
in your game start at level 0.75:

```swift
@Generable
struct GameCharacter {
    @Guide(description: "A creative name appropriate for a fantasy RPG character")
    var name: String

    @Guide(description: "A level for the character", .minimum(0.75))
    var level: Decimal
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)