@ynhcj/xiaoyi-channel 0.0.109-next → 0.0.110-next
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/dist/src/provider.js +15 -0
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -598,4 +598,19 @@ export const xiaoyiProvider = {
|
|
|
598
598
|
return createRetryingStream(makeStream, cronJob);
|
|
599
599
|
};
|
|
600
600
|
},
|
|
601
|
+
/**
|
|
602
|
+
* Diagnostic-only: log ctx.sessionId format on every transport turn.
|
|
603
|
+
* Goal: confirm whether sessionId = sessionKey (so we can use it to
|
|
604
|
+
* look up A2A context directly from activeSessions, bypassing ALS).
|
|
605
|
+
*/
|
|
606
|
+
resolveTransportTurnState: (ctx) => {
|
|
607
|
+
console.log(`[xiaoyiprovider] resolveTransportTurnState — ` +
|
|
608
|
+
`sessionId=${ctx.sessionId ?? "null"}, ` +
|
|
609
|
+
`turnId=${ctx.turnId}, ` +
|
|
610
|
+
`transport=${ctx.transport}, ` +
|
|
611
|
+
`attempt=${ctx.attempt}, ` +
|
|
612
|
+
`provider=${ctx.provider}, ` +
|
|
613
|
+
`modelId=${ctx.modelId}`);
|
|
614
|
+
return null;
|
|
615
|
+
},
|
|
601
616
|
};
|