---
title: ArgumentValue
framework: evaluations
role: symbol
role_heading: Enumeration
path: evaluations/argumentvalue
---

# ArgumentValue

A primitive value type for argument specifications that is @Generable.

## Declaration

```swift
enum ArgumentValue
```

## Overview

Overview let city: ArgumentValue = "San Francisco" let count: ArgumentValue = 5 let score: ArgumentValue = 0.95 Unlike StructuredValue, this enum only contains primitive types (no recursive array/dictionary) which allows it to work with the @Generable macro.

## Topics

### Values

- [ArgumentValue.string(_:)](evaluations/argumentvalue/string(_:).md)
- [ArgumentValue.int(_:)](evaluations/argumentvalue/int(_:).md)
- [ArgumentValue.double(_:)](evaluations/argumentvalue/double(_:).md)
- [ArgumentValue.bool(_:)](evaluations/argumentvalue/bool(_:).md)

### Converting values

- [structuredValue](evaluations/argumentvalue/structuredvalue.md)
- [StructuredValue](evaluations/structuredvalue.md)

## Relationships

### Conforms To

- [ConvertibleFromGeneratedContent](foundationmodels/convertiblefromgeneratedcontent.md)
- [ConvertibleToGeneratedContent](foundationmodels/convertibletogeneratedcontent.md)
- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByBooleanLiteral](swift/expressiblebybooleanliteral.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Generable](foundationmodels/generable.md)
- [Hashable](swift/hashable.md)
- [InstructionsRepresentable](foundationmodels/instructionsrepresentable.md)
- [PromptRepresentable](foundationmodels/promptrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [StructuredValue](evaluations/structuredvalue.md)
