SfapApiChatGenerationsRequestBody
@Serializable
Models a sfap_api chat-generations endpoint request. See https://developer.salesforce.com/docs/einstein/genai/references/models-api?meta=generateChat
The endpoint accepts a tags object in addition to messages and localization. To provide tags, subclass and introduce a new parameter of any object type named tags. Also, override the toJson method to use the subclass serializer instead of the the serializer provided by this class.
Parameters
messages
The request messages parameter value
localization
The request localization parameter value
Constructors
Link copied to clipboard
constructor(messages: Array<SfapApiChatGenerationsRequestBody.Message>, localization: SfapApiChatGenerationsRequestBody.Localization)
Types
Link copied to clipboard
@Serializable