@dropout-ai/runtime 0.2.8 → 0.2.9
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/package.json +1 -1
- package/src/index.js +4 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -177,7 +177,7 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
|
|
|
177
177
|
const requestEvent = {
|
|
178
178
|
session_id: GLOBAL_OBJ.__dropout_session_id__,
|
|
179
179
|
turn_index: activeTurn,
|
|
180
|
-
direction: '
|
|
180
|
+
direction: 'user_to_ai',
|
|
181
181
|
turn_role: 'user',
|
|
182
182
|
created_at: Date.now(),
|
|
183
183
|
provider,
|
|
@@ -218,7 +218,7 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
|
|
|
218
218
|
const responseEvent = {
|
|
219
219
|
session_id: GLOBAL_OBJ.__dropout_session_id__,
|
|
220
220
|
turn_index: activeTurn,
|
|
221
|
-
direction: '
|
|
221
|
+
direction: 'ai_to_user',
|
|
222
222
|
turn_role: 'assistant',
|
|
223
223
|
created_at: Date.now(),
|
|
224
224
|
latency_ms: latency,
|
|
@@ -277,7 +277,7 @@ async function capture(target, options = {}) {
|
|
|
277
277
|
emit({
|
|
278
278
|
session_id: GLOBAL_OBJ.__dropout_session_id__,
|
|
279
279
|
turn_index: activeTurn,
|
|
280
|
-
direction: '
|
|
280
|
+
direction: 'user_to_ai',
|
|
281
281
|
turn_role: 'user',
|
|
282
282
|
created_at: Date.now(),
|
|
283
283
|
provider: options.provider || 'manual',
|
|
@@ -291,7 +291,7 @@ async function capture(target, options = {}) {
|
|
|
291
291
|
emit({
|
|
292
292
|
session_id: GLOBAL_OBJ.__dropout_session_id__,
|
|
293
293
|
turn_index: activeTurn,
|
|
294
|
-
direction: '
|
|
294
|
+
direction: 'ai_to_user',
|
|
295
295
|
turn_role: 'assistant',
|
|
296
296
|
created_at: Date.now(),
|
|
297
297
|
latency_ms,
|