AgentforceConversation

  • AgentforceConversation(String?, String?, AgentforceConfiguration, AgentforceConnectionInfo?, ConversationService, Logger?, StateFlow<AgentforceConversationState>, Function2<AgentforceConversation, String?, Unit>)
PropertyTypeMutabilityDescription
agentIdString?varThe identifier of the agent handling this conversation
conversationManagerConversationManagingvarInternal conversation management interface
conversationStateStateFlowvalFlow providing real-time conversation state updates
idStringvalUnique identifier for this conversation
recommendedUtterancesStateFlow<List>valFlow of recommended utterances
sessionIdString?varSession identifier for conversation continuity
sessionScopeCoroutineScopevarCoroutine scope for session operations
FunctionSignatureDescription
endConversationsuspend fun endConversation(): UnitEnds the current conversation session
getCurrentAgentfun getCurrentAgent(): AgentDataGet current agent data
resetSessionopen override fun resetSession(): UnitResets the Agentforce session container
resetSessionfun resetSession(String): Unit
retrieveTranscriptsuspend fun retrieveTranscript(): InputStreamRetrieve conversation transcript as a PDF InputStream
sendTypingIndicatorsuspend fun sendTypingIndicator(): UnitSends a typing indicator for MIAW conversations when user is typing
sendUtteranceopen suspend override fun sendUtterance(String, AgentforceAttachment?): UnitSend an utterance to Agentforce
setAdditionalContextopen suspend override fun setAdditionalContext(CopilotAdditionalContext): UnitUpdates the current context variables that will be sent to Agentforce on subsequent messages
startSessionsuspend fun startSession(): Unit
updateRecommendationUtterancesopen override fun updateRecommendationUtterances(List<String>): Unit
  • clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait