awaitUpdateContext

suspend fun SendbirdChat.AIAgent.awaitUpdateContext(aiAgentId: String, channelUrl: String, context: Map<String, String>): String

Replaces the context of AI agent for a specific channel.

Return

The updated context object of AI agent.

Since

4.34.0

Parameters

aiAgentId

The AI agent ID.

channelUrl

The URL of the channel.

context

The context map to update.