@nuvin/agent-core 0.0.0-rc.19 → 0.0.0-rc.20
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/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-HRU363DY.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/openai-model.d.ts +8 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/web-fetch-tool.d.ts +3 -0
- package/dist/tools/web-search-tool.d.ts +3 -0
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export interface OpenAiModelOptions extends Partial<BaseChatModelOptions> {
|
|
|
27
27
|
webSocketFactory?: WebSocketFactory;
|
|
28
28
|
}
|
|
29
29
|
export declare class OpenAiModel extends RoutedModel {
|
|
30
|
-
private
|
|
30
|
+
private readonly responsesSocketSessions;
|
|
31
31
|
protected readonly chatCompletionsPath: string;
|
|
32
32
|
protected readonly responsesPath: string;
|
|
33
33
|
constructor(options?: OpenAiModelOptions);
|
|
@@ -46,6 +46,13 @@ export declare class OpenAiModel extends RoutedModel {
|
|
|
46
46
|
complete(request: ChatRequest, options?: ModelExecutionOptions): Promise<ChatResponse>;
|
|
47
47
|
stream(request: ChatRequest, options?: ModelExecutionOptions): AsyncIterable<ChatResponseChunk>;
|
|
48
48
|
private getResponsesSocketSessionState;
|
|
49
|
+
/**
|
|
50
|
+
* Drop an idle session state from the map so it does not accumulate for the
|
|
51
|
+
* life of this model instance. Only evicts when nothing is using it: no live
|
|
52
|
+
* or connecting socket and no held lock. Guarded against deleting a state that
|
|
53
|
+
* has already been replaced under the same key.
|
|
54
|
+
*/
|
|
55
|
+
private maybeEvictResponsesSocketSession;
|
|
49
56
|
private getResponsesSocketSessionKey;
|
|
50
57
|
private acquireResponsesSocketLock;
|
|
51
58
|
private prepareResponsesSocketRequest;
|
package/dist/shared/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0xf877df,_0x4fc3ac){var _0x38e873={_0x5e9dfe:0x21f,_0x6a0d0:0x224,_0x1a3cb3:0x221,_0x58ab1b:0x21e,_0x355102:0x3b1,_0x45bc6d:0x3ac,_0x5b0c4d:0x218,_0x4f3dc6:0x3b6,_0x3acc12:0x3bb,_0x59f6f4:0x3bf,_0xd15874:0x3be,_0x504148:0x21a,_0x3ba607:0x225,_0x44991d:0x3b0,_0x23b504:0x3b3,_0x45f2e5:0x3b7,_0x71ecb4:0x3b2,_0x187eb7:0x3b8,_0x5e3b39:0x3b4,_0x3824ff:0x3b7,_0x3d65a1:0x225,_0x5d8a83:0x227,_0x32cb9b:0x229,_0x5f588b:0x21c,_0x5e725b:0x220},_0x5d22cb={_0x41ac66:0x24c},_0xacf212={_0x16a3f9:0xb6},_0x407e93=_0xf877df();function _0x46e963(_0x1da81c,_0x2e59b9,_0x3de7b3,_0x56a95a){return _0x1e59(_0x3de7b3-_0xacf212._0x16a3f9,_0x2e59b9);}function _0xf680ec(_0x35a03a,_0x3a5d6b,_0x2aad3c,_0x252591){return _0x1e59(_0x3a5d6b-_0x5d22cb._0x41ac66,_0x35a03a);}while(!![]){try{var _0x2b101c=-parseInt(_0x46e963(0x221,_0x38e873._0x5e9dfe,_0x38e873._0x6a0d0,_0x38e873._0x6a0d0))/0x1*(parseInt(_0x46e963(0x21f,0x225,_0x38e873._0x1a3cb3,_0x38e873._0x58ab1b))/0x2)+parseInt(_0xf680ec(_0x38e873._0x355102,0x3b0,_0x38e873._0x45bc6d,0x3ac))/0x3*(-parseInt(_0x46e963(_0x38e873._0x5b0c4d,0x21e,0x21b,0x21d))/0x4)+-parseInt(_0xf680ec(0x3b1,0x3b4,_0x38e873._0x4f3dc6,0x3ba))/0x5*(-parseInt(_0xf680ec(0x3bc,_0x38e873._0x3acc12,_0x38e873._0x59f6f4,_0x38e873._0xd15874))/0x6)+-parseInt(_0x46e963(_0x38e873._0x504148,_0x38e873._0x3ba607,_0x38e873._0x5e9dfe,_0x38e873._0x5b0c4d))/0x7*(parseInt(_0xf680ec(0x3a8,0x3af,0x3a9,_0x38e873._0x44991d))/0x8)+-parseInt(_0xf680ec(0x3bf,0x3b8,0x3bd,_0x38e873._0x23b504))/0x9*(parseInt(_0xf680ec(_0x38e873._0x45f2e5,_0x38e873._0x71ecb4,_0x38e873._0x23b504,_0x38e873._0x187eb7))/0xa)+parseInt(_0xf680ec(0x3b8,0x3b3,_0x38e873._0x5e3b39,_0x38e873._0x3824ff))/0xb*(parseInt(_0x46e963(_0x38e873._0x3d65a1,_0x38e873._0x5d8a83,0x223,_0x38e873._0x32cb9b))/0xc)+parseInt(_0x46e963(_0x38e873._0x5f588b,_0x38e873._0x5e725b,0x220,0x21b))/0xd;if(_0x2b101c===_0x4fc3ac)break;else _0x407e93['push'](_0x407e93['shift']());}catch(_0x142c97){_0x407e93['push'](_0x407e93['shift']());}}}(_0x2131,0x61980));import{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x1e59(_0x28eb47,_0x2847d8){_0x28eb47=_0x28eb47-0x163;var _0x21314f=_0x2131();var _0x1e59c5=_0x21314f[_0x28eb47];if(_0x1e59['ewDEDz']===undefined){var _0x11411f=function(_0x26799c){var _0x349163='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1fc4b7='',_0x211b7d='';for(var _0x3b16b9=0x0,_0x419d97,_0x1dbed7,_0x231b9b=0x0;_0x1dbed7=_0x26799c['charAt'](_0x231b9b++);~_0x1dbed7&&(_0x419d97=_0x3b16b9%0x4?_0x419d97*0x40+_0x1dbed7:_0x1dbed7,_0x3b16b9++%0x4)?_0x1fc4b7+=String['fromCharCode'](0xff&_0x419d97>>(-0x2*_0x3b16b9&0x6)):0x0){_0x1dbed7=_0x349163['indexOf'](_0x1dbed7);}for(var _0x339d49=0x0,_0x3c6d24=_0x1fc4b7['length'];_0x339d49<_0x3c6d24;_0x339d49++){_0x211b7d+='%'+('00'+_0x1fc4b7['charCodeAt'](_0x339d49)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x211b7d);};_0x1e59['TdVHDL']=_0x11411f,_0x1e59['ThSVxb']={},_0x1e59['ewDEDz']=!![];}var _0x15ff3c=_0x21314f[0x0],_0x5c54d8=_0x28eb47+_0x15ff3c,_0x4ce78c=_0x1e59['ThSVxb'][_0x5c54d8];return!_0x4ce78c?(_0x1e59c5=_0x1e59['TdVHDL'](_0x1e59c5),_0x1e59['ThSVxb'][_0x5c54d8]=_0x1e59c5):_0x1e59c5=_0x4ce78c,_0x1e59c5;}function _0x2131(){var _0x3eefbf=['mJqWnJK2ogXczgHqCa','m0H0sKzSzG','mJK1mdG5mMzYBgDXsW','mJbhCMrZCMG','nZi0mtmWrK9TreLe','mtuWmZaYnvznrKTOAG','n3zuswX5tq','mtK4ntu2mtvwB2rdv2W','odzjCMjoAeq','otq5mJKZDNvZB25V','mtjYtvfZC3K','nty4nNzuqufkDW','nMv2CNjSqq'];_0x2131=function(){return _0x3eefbf;};return _0x2131();}export{OperationAbortedError,TurnFailedError,addAbortListener,isAbortError,mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
|