@salesforce/agentforce-conversation-client 12.12.0 → 12.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -751,6 +751,18 @@ const { applied } = await embed.setContext(
751
751
  );
752
752
  ```
753
753
 
754
+ To remove a variable, call `setContext` again with the same `name` and `type` and set `value` to `null`. There is no separate clear method. A `null` value drops that variable from the context sent on the next planner request. **Last write wins**, including when you await the ack.
755
+
756
+ ```typescript
757
+ // Remove a previously set variable. Same API; value: null drops it.
758
+ embed.setContext([{ name: "$Context.PropertyId", value: null, type: "Text" }]);
759
+
760
+ const { applied } = await embed.setContext(
761
+ [{ name: "$Context.PropertyId", value: null, type: "Text" }],
762
+ { awaitApplied: true },
763
+ );
764
+ ```
765
+
754
766
  ### `embed.open(botId?)` / `embed.close()` / `embed.execute(utterance, botId)`
755
767
 
756
768
  Drive the existing panel: open/maximize, close/minimize, or send an utterance (opening
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/agentforce-conversation-client",
3
3
  "description": "Agentforce Conversation Client SDK for embedding via Lightning Out 2.0",
4
- "version": "12.12.0",
4
+ "version": "12.12.1",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",