AgentforceComponent

@Serializable data class AgentforceComponent

Base component model for rendering dynamic UI elements in the Agentforce Android SDK.

PropertyTypeDescription
definitionStringComponent type identifier (e.g., "copilot/list")
nameString?Optional component instance name
properties@Serializable(with = AgentforceViewPropertiesSerializer::class) Map<String, Any>Component-specific configuration properties with custom serialization
regionsAgentforceDataRegionsData regions containing nested components and content
ConstructorParameters
AgentforceComponent(definition, name, properties, regions)definition: String, name: String? = null, properties: Map<String, Any> = emptyMap(), regions: AgentforceDataRegions
FunctionSignatureDescription
getIntPropertyfun AgentforceComponent.getIntProperty(key: String, default: Int): IntGet integer property with default value
getListPropertyfun AgentforceComponent.getListProperty(key: String, default: List<String>): List<String>Get list property with default value
getMapPropertyfun AgentforceComponent.getMapProperty(key: String, default: Map<String, Any>): Map<String, Any>Get map property with default value
getStringPropertyfun AgentforceComponent.getStringProperty(key: String, default: String): StringGet string property with default value