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

# buildEither(second:)

Creates a builder with the second component.

## Declaration

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

## See Also

### Building a dynamic profile

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