AgentforceClient

Implementation of AgentforceClient. This will allow to start the Agentforce conversations and presents window.

  • AgentforceClient()
PropertyTypeMutabilityDescription
agentforceInstrumentationHandlerAgentforceInstrumentationHandler?varAnalytics and performance monitoring handler
contextManagerAgentforceContextManager?varContext manager instance
conversationServiceConversationServicelateinit varConversation service instance
onboardingManagerAgentforceOnboardingManagerlateinit varOnboarding manager instance
pageContextStateFlowvalPage context state flow
FunctionSignatureDescription
AgentforceCardContainer@Composable open override fun AgentforceCardContainer(Modifier, AgentforceConversation, AgentforceComponent): Unit
AgentforceConversationContainer@Composable open override fun AgentforceConversationContainer(AgentforceConversation, Function0<Unit>): UnitDraws the Agentforce conversation container with a top bar
AgentforceConversationContainer@Composable open override fun AgentforceConversationContainer(AgentforceConversation, Boolean, Function0<Unit>): UnitDraws the Agentforce conversation container
AgentforceLauncherContainer@Composable open override fun AgentforceLauncherContainer(AgentforceConversation, Function0<Unit>): Unit
AgentforceVoiceContainer@Composable fun AgentforceVoiceContainer(AgentforceConversation, Function0<Unit>): UnitVoice UI Container - A separate entry point for voice interaction
createAgentforceResponseCardManageropen override fun createAgentforceResponseCardManager(AgentforceConversation, String?): AgentforceResponseCardManagerCreates a multiturn card manager for the specified conversation
findAgentforceConversationfun findAgentforceConversation(String, String?): AgentforceConversation?
getCurrentContextManagerfun getCurrentContextManager(): AgentforceContextManager?Returns the current context manager instance
initfun init(CoroutineScope?, AgentforceAuthCredentialProvider?, AgentforceMode, Application): UnitInitialize the session by providing the required parameters
startAgentforceConversationopen override fun startAgentforceConversation(String?, String?): AgentforceConversationStart a conversation with the Agentforce assistant
updatePageContextfun updatePageContext(AgentforcePageContext): Unit
  • clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait