Skip to main content
Bing Wang (Accenture) 님이 * Salesforce Einstein *에 질문했습니다

There is a "applicationName" attribute in the EinsteinLlmAdditionalConfigInputRepresentation parameter passed in when resolving a Prompt Template in Apex.  What's the significance of that?  It's required, but I couldn't find any explanation of what that is.  These two values seem to work, but are they just a label of the caller?

  • PromptBuilderPreview
  • PromptTemplateGenerationsInvocable

Does it matter what we use?  Random strings don't work, as the method would end with a "Application Name is a required field providing existing registered ai applicaton" (typo was from the actual message).  Still couldn't tell what that means..

답변 7개
  1. 6월 14일 오후 6:16

    the app name is "PromptBuilderPreview". when calling from apex you may use 

     

    promptGenerationsInput.additionalConfig = new ConnectApi.EinsteinLlmAdditionalConfigInput();

            promptGenerationsInput.additionalConfig.applicationName = 'PromptBuilderPreview';

            promptGenerationsInput.isPreview = false;

0/9000