SfapApiFeedbackRequestBody

@Serializable
open class SfapApiFeedbackRequestBody(val id: String? = null, val appGeneration: String? = null, val appGenerationId: String? = null, val feedback: String? = null, val feedbackText: String? = null, val generationId: String? = null, val source: String? = null)

Models a sfap_api feedback endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=submitFeedback

The endpoint accepts a appFeedback object as well. To provide appFeedback, subclass and introduce a new parameter of any object type named appFeedback. Also, override the toJson method to use the subclass serializer instead of the the serializer provided by this class.

Constructors

Link copied to clipboard
constructor(id: String? = null, appGeneration: String? = null, appGenerationId: String? = null, feedback: String? = null, feedbackText: String? = null, generationId: String? = null, source: String? = null)

Properties

Link copied to clipboard
val appGeneration: String? = null
Link copied to clipboard
val appGenerationId: String? = null
Link copied to clipboard
val feedback: String? = null
Link copied to clipboard
val feedbackText: String? = null
Link copied to clipboard
val generationId: String? = null
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val source: String? = null

Functions

Link copied to clipboard
open fun toJson(): String

Encodes this request body to JSON text.