@ray-js/t-agent 0.2.7-beta.4 → 0.2.7-beta.5

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.
package/README-zh_CN.md CHANGED
@@ -858,7 +858,7 @@ agent.plugins.aiStream.onUserDataRead((type, data, result) => {
858
858
  }
859
859
  // 在每次发送消息时传递动态上下文
860
860
  if (type === 'start-event') {
861
- result.userData = {
861
+ result.eventAttributes = {
862
862
  'custom.param': {
863
863
  timestamp: { value: Date.now() },
864
864
  pid: { value: '123456' },
package/README.md CHANGED
@@ -844,7 +844,7 @@ agent.plugins.aiStream.onUserDataRead((type, data, result) => {
844
844
  }
845
845
  // Pass dynamic context each time a message is sent
846
846
  if (type === 'start-event') {
847
- result.userData = {
847
+ result.eventAttributes = {
848
848
  'custom.param': {
849
849
  timestamp: { value: Date.now() },
850
850
  pid: { value: '123456' },
@@ -11,7 +11,7 @@ export interface UIEventMap {
11
11
  scrollToBottom: {
12
12
  animation?: boolean;
13
13
  follow?: boolean;
14
- tickValue?: number;
14
+ scene?: string;
15
15
  };
16
16
  sendMessage: {
17
17
  blocks: InputBlock[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/t-agent",
3
- "version": "0.2.7-beta.4",
3
+ "version": "0.2.7-beta.5",
4
4
  "author": "Tuya.inc",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -26,5 +26,5 @@
26
26
  "build": "ray build --type=component --output dist",
27
27
  "clean": "rimraf ./dist"
28
28
  },
29
- "gitHead": "b10810d37f15c3209ced9fddbfbb94936ad86328"
29
+ "gitHead": "187f13a29e7d42568102e551fdb6751a0e488134"
30
30
  }