---
title: "buildBlock(_:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelsession/dynamicprofilebuilder/buildblock(_:)"
---

# buildBlock(_:)

Creates a builder with a block.

## Declaration

```swift
static func buildBlock<T>(_ content: T) -> T where T : LanguageModelSession.DynamicProfile
```

## See Also

### Building a dynamic profile

- [buildEither(first:)](foundationmodels/languagemodelsession/dynamicprofilebuilder/buildeither(first:).md)
- [buildEither(second:)](foundationmodels/languagemodelsession/dynamicprofilebuilder/buildeither(second:).md)
