---
title: "buildEither(first:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelsession/dynamicprofilebuilder/buildeither(first:)"
---

# buildEither(first:)

Creates a builder with the first component.

## Declaration

```swift
static func buildEither<TrueContent, FalseContent>(first content: TrueContent) -> LanguageModelSession.ConditionalDynamicProfile<TrueContent, FalseContent> where TrueContent : LanguageModelSession.DynamicProfile, FalseContent : LanguageModelSession.DynamicProfile
```

## See Also

### Building a dynamic profile

- [buildBlock(_:)](foundationmodels/languagemodelsession/dynamicprofilebuilder/buildblock(_:).md)
- [buildEither(second:)](foundationmodels/languagemodelsession/dynamicprofilebuilder/buildeither(second:).md)
