awaitPatchContext

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

Merges the context of AI agent for a specific channel with the provided key-value pairs.

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 patch.