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

# buildEither(second:)

Creates a builder with the second component.

## Declaration

```swift
static func buildEither(second component: some PromptRepresentable) -> Prompt
```

## See Also

### Building a prompt

- [buildArray(_:)](foundationmodels/promptbuilder/buildarray(_:).md)
- [buildBlock(_:)](foundationmodels/promptbuilder/buildblock(_:).md)
- [buildEither(first:)](foundationmodels/promptbuilder/buildeither(first:).md)
- [buildExpression(_:)](foundationmodels/promptbuilder/buildexpression(_:).md)
- [buildLimitedAvailability(_:)](foundationmodels/promptbuilder/buildlimitedavailability(_:).md)
- [buildOptional(_:)](foundationmodels/promptbuilder/buildoptional(_:).md)
