---
schema_version: "1"
id: f8d7e56ed0c95276c5dad9231f103ea51996cfa9fe45584503e711738a676c9c
title: AgentforceUIApiFieldValues
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-ui-api-field-values-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-ui-api-field-values-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0db9202e0ebd396c6781bb88c6cf96f249eca409103577a5ded52ded13cf51b6
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceUIApiFieldValues

## Overview

A data structure that represents field values from the UI API in Agentforce conversations. It provides a structured way to represent field values with both display and raw value information.

## Declaration

```swift
struct AgentforceUIAPIFieldValues
```

## Properties

| Property       | Type      | Description                               |
| -------------- | --------- | ----------------------------------------- |
| `displayValue` | `String?` | The formatted display value for the field |
| `value`        | `Any?`    | The raw value of the field                |

## Methods

| Method                      | Signature                                              | Description                                                 |
| --------------------------- | ------------------------------------------------------ | ----------------------------------------------------------- |
| `init(displayValue:value:)` | `init(displayValue: String? = nil, value: Any? = nil)` | Creates a new instance with optional display and raw values |
