@rpcbase/agents-sdk 0.17.0 → 0.18.0
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/api/chat/handler.d.ts.map +1 -1
- package/dist/api/chat/openAiHistory.d.ts +18 -0
- package/dist/api/chat/openAiHistory.d.ts.map +1 -0
- package/dist/{handler-CkkGxcAy.js → handler-4LDG9nm7.js} +554 -471
- package/dist/{handler-ICOAej54.js → handler-CfmidRGk.js} +376 -293
- package/dist/routes.browser.js +1 -1
- package/dist/routes.js +1 -1
- package/dist/runtime.js +1 -1
- package/dist/tailwind-source.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/api/chat/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAmB,KAAK,GAAG,EAAE,MAAM,cAAc,CAAA;AAwC7D,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/api/chat/handler.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAmB,KAAK,GAAG,EAAE,MAAM,cAAc,CAAA;AAwC7D,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iBAAiB,CAAA;AAUxB,OAAO,EAAS,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAozB1E,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,CAAC,KAAK,EAAE;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,cAAc,CAAC;IACxB,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,eAAe,CAAC,EAAE,wBAAwB,GAAG,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAA;AAiKhD,eAAO,MAAM,YAAY,0DAMtB,iBAAiB,KAAG,OAAO,CAAC,kBAAkB,CA65BhD,CAAA;;0BAyBe,GAAG,EAAE,GAAG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type OpenAiHistoryMessage = {
|
|
2
|
+
role?: unknown;
|
|
3
|
+
parts?: unknown;
|
|
4
|
+
};
|
|
5
|
+
type SanitizedOpenAiHistory<T> = {
|
|
6
|
+
messages: T[];
|
|
7
|
+
removedItemReferences: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* OpenAI Responses item references from one model step must be replayed with
|
|
11
|
+
* that step's reasoning item. Older SDK versions could persist message and
|
|
12
|
+
* tool item IDs while omitting reasoning chunks. Replaying those IDs makes the
|
|
13
|
+
* Responses API reject the entire request, so incomplete steps are replayed
|
|
14
|
+
* as raw assistant content instead.
|
|
15
|
+
*/
|
|
16
|
+
export declare const sanitizeOpenAiResponseHistory: <T extends OpenAiHistoryMessage>(messages: T[]) => SanitizedOpenAiHistory<T>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=openAiHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openAiHistory.d.ts","sourceRoot":"","sources":["../../../src/api/chat/openAiHistory.ts"],"names":[],"mappings":"AAAA,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAA;AAED,KAAK,sBAAsB,CAAC,CAAC,IAAI;IAC/B,QAAQ,EAAE,CAAC,EAAE,CAAC;IACd,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAA;AAgHD;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,GAAI,CAAC,SAAS,oBAAoB,YAChE,CAAC,EAAE,KACZ,sBAAsB,CAAC,CAAC,CAiB1B,CAAA"}
|