@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.11
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.d.ts +53 -5
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -0
- package/dist/chunk-VDDXTXQ4.js +1 -0
- package/dist/chunk-WJMBJOVF.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +17 -3
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +15 -12
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-CURkQPbY.d.ts} +1 -1
- package/dist/shared/index.d.ts +8 -3
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +333 -23
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-Df0vlfj-.d.ts} +75 -27
- package/package.json +14 -4
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/formats/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { t as toOpenAiResponsesRequest } from '../provider-adapters-
|
|
1
|
+
import { g as ContentBlock, h as TextBlock, i as ContentInput, S as SystemInput, j as MessageInput, M as Message, k as CompileRequestInput, l as ModelRequest, C as ChatRequest, m as ModelResponse, n as ChatResponse, o as ToolUseBlock, p as ToolResultBlock, q as ToolResult } from '../types-Df0vlfj-.js';
|
|
2
|
+
export { t as toOpenAiResponsesRequest } from '../provider-adapters-CURkQPbY.js';
|
|
3
|
+
|
|
4
|
+
declare function hasPastedImages(input: string): boolean;
|
|
5
|
+
declare function contentFromPastedText(input: string): ContentBlock[];
|
|
3
6
|
|
|
4
7
|
declare function createTextBlock(text: string): TextBlock;
|
|
5
8
|
declare function normalizeTextBlock(block: TextBlock): TextBlock;
|
|
@@ -21,5 +24,16 @@ declare function getReasoningTextFromMessage(message: Message | undefined): stri
|
|
|
21
24
|
declare function getToolUseBlocks(message: Message | undefined): ToolUseBlock[];
|
|
22
25
|
declare function getToolResultBlocks(message: Message | undefined): ToolResultBlock[];
|
|
23
26
|
declare function createToolResultUserMessage(toolResults: ToolResult[]): Message;
|
|
27
|
+
declare const INTERRUPTED_TOOL_RESULT_TEXT = "Tool execution was interrupted before completion and produced no result.";
|
|
28
|
+
/**
|
|
29
|
+
* Repairs a transcript so every assistant `tool_use` block has a matching
|
|
30
|
+
* `tool_result`. A turn that fails after the assistant tool call is committed
|
|
31
|
+
* but before its result is appended leaves an orphaned `tool_use`, which
|
|
32
|
+
* providers reject. For each unanswered `tool_use`, a synthetic error
|
|
33
|
+
* `tool_result` is inserted in the user message immediately after the
|
|
34
|
+
* assistant message, keeping the sequence provider-valid and the model
|
|
35
|
+
* informed that the tool did not complete.
|
|
36
|
+
*/
|
|
37
|
+
declare function synthesizeMissingToolResults(messages: Message[]): Message[];
|
|
24
38
|
|
|
25
|
-
export { compileRequest, createAssistantTextMessage, createReasoningMessage, createTextBlock, createToolResultUserMessage, createToolUseMessage, getReasoningTextFromMessage, getTextFromMessage, getToolResultBlocks, getToolUseBlocks, normalizeContent, normalizeMessage, normalizeSystem, normalizeTextBlock, responseToAssistantMessage, toChatRequest, toChatResponse, toModelRequest, toModelResponse, toProviderModelRequest };
|
|
39
|
+
export { INTERRUPTED_TOOL_RESULT_TEXT, compileRequest, contentFromPastedText, createAssistantTextMessage, createReasoningMessage, createTextBlock, createToolResultUserMessage, createToolUseMessage, getReasoningTextFromMessage, getTextFromMessage, getToolResultBlocks, getToolUseBlocks, hasPastedImages, normalizeContent, normalizeMessage, normalizeSystem, normalizeTextBlock, responseToAssistantMessage, synthesizeMissingToolResults, toChatRequest, toChatResponse, toModelRequest, toModelResponse, toProviderModelRequest };
|
package/dist/formats/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1af1(_0x40c43c,_0x72bec7){_0x40c43c=_0x40c43c-0x1c3;const _0x566f29=_0x566f();let _0x1af18d=_0x566f29[_0x40c43c];if(_0x1af1['DtRTdq']===undefined){var _0x59347f=function(_0x4c00a7){const _0x285b43='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x122f95='',_0x4c79e8='';for(let _0x23fb4d=0x0,_0x200ed4,_0x40f352,_0x136364=0x0;_0x40f352=_0x4c00a7['charAt'](_0x136364++);~_0x40f352&&(_0x200ed4=_0x23fb4d%0x4?_0x200ed4*0x40+_0x40f352:_0x40f352,_0x23fb4d++%0x4)?_0x122f95+=String['fromCharCode'](0xff&_0x200ed4>>(-0x2*_0x23fb4d&0x6)):0x0){_0x40f352=_0x285b43['indexOf'](_0x40f352);}for(let _0x36d7c2=0x0,_0x2a0b73=_0x122f95['length'];_0x36d7c2<_0x2a0b73;_0x36d7c2++){_0x4c79e8+='%'+('00'+_0x122f95['charCodeAt'](_0x36d7c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c79e8);};_0x1af1['cPKdzq']=_0x59347f,_0x1af1['QvWTJJ']={},_0x1af1['DtRTdq']=!![];}const _0x5a43a3=_0x566f29[0x0],_0x440762=_0x40c43c+_0x5a43a3,_0xbda362=_0x1af1['QvWTJJ'][_0x440762];return!_0xbda362?(_0x1af18d=_0x1af1['cPKdzq'](_0x1af18d),_0x1af1['QvWTJJ'][_0x440762]=_0x1af18d):_0x1af18d=_0xbda362,_0x1af18d;}(function(_0x4921a9,_0x5b0fdc){const _0x527e9e={_0x335939:0x418,_0x5e835c:0x41b,_0xa84af2:0x419,_0x50685b:0x413,_0x3551d2:0x1be,_0xab8528:0x42f,_0x1a0f74:0x424,_0x33991e:0x426,_0x29ebb5:0x41e,_0x408bbe:0x41a,_0x2d55b2:0x418,_0x1284cc:0x1a4,_0x40f65d:0x423,_0xa8e529:0x431,_0x8c50da:0x42c,_0xe061c2:0x421,_0x131cbb:0x41f},_0x35dd27={_0x265599:0x380},_0x1b491d={_0x502266:0x253},_0x46a962=_0x4921a9();function _0x203203(_0x2858ba,_0x1a646a,_0xd2d6e7,_0x32a840){return _0x1af1(_0xd2d6e7-_0x1b491d._0x502266,_0x2858ba);}function _0x4c85a5(_0x150baf,_0x5efc7d,_0x21e39a,_0x1495b9){return _0x1af1(_0x21e39a- -_0x35dd27._0x265599,_0x150baf);}while(!![]){try{const _0xd3a976=-parseInt(_0x203203(_0x527e9e._0x335939,_0x527e9e._0x5e835c,_0x527e9e._0xa84af2,_0x527e9e._0x50685b))/0x1+-parseInt(_0x4c85a5(-0x1bb,-_0x527e9e._0x3551d2,-0x1b9,-0x1c0))/0x2*(parseInt(_0x203203(_0x527e9e._0xab8528,0x422,_0x527e9e._0x1a0f74,_0x527e9e._0x33991e))/0x3)+parseInt(_0x203203(_0x527e9e._0x29ebb5,_0x527e9e._0x408bbe,0x41d,0x416))/0x4*(-parseInt(_0x203203(0x42a,0x422,0x42b,0x426))/0x5)+-parseInt(_0x203203(0x41b,0x422,_0x527e9e._0x2d55b2,0x40e))/0x6+parseInt(_0x4c85a5(-_0x527e9e._0x1284cc,-0x1ac,-0x1ad,-0x1b3))/0x7+-parseInt(_0x203203(0x421,_0x527e9e._0x40f65d,0x425,_0x527e9e._0xa8e529))/0x8*(parseInt(_0x203203(0x433,0x42f,_0x527e9e._0x8c50da,_0x527e9e._0xe061c2))/0x9)+-parseInt(_0x203203(_0x527e9e._0x8c50da,0x422,0x429,_0x527e9e._0x131cbb))/0xa*(-parseInt(_0x203203(0x415,0x420,0x41f,_0x527e9e._0x40f65d))/0xb);if(_0xd3a976===_0x5b0fdc)break;else _0x46a962['push'](_0x46a962['shift']());}catch(_0x337b38){_0x46a962['push'](_0x46a962['shift']());}}}(_0x566f,0x23aa8));import{toOpenAiResponsesRequest}from'../chunk-VDDXTXQ4.js';import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-SEP4YYY3.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x122f95){const _0x418db4={_0x220464:0x19b,_0x48a104:0x19d,_0x12afd2:0x198,_0x299295:0x191,_0x5c7947:0x191},_0x328529={_0x58559d:0x37},_0x50baa6={_0xca0e04:0x111};function _0x50da42(_0x23255a,_0x77687f,_0x51bcda,_0x25ce44){return _0x1af1(_0x51bcda-_0x50baa6._0xca0e04,_0x77687f);}function _0x1777c7(_0x2344b6,_0x3ffd7a,_0x4957de,_0x350d3c){return _0x1af1(_0x350d3c- -_0x328529._0x58559d,_0x4957de);}return _0x122f95===_0x1777c7(0x196,_0x418db4._0x220464,0x1a7,_0x418db4._0x48a104)?_0x1777c7(_0x418db4._0x12afd2,_0x418db4._0x220464,_0x418db4._0x299295,_0x418db4._0x5c7947):_0x122f95;}function isValidBase64(_0x4c79e8){const _0x4b3926={_0x23008b:0x23a,_0x39c6bf:0x230,_0x4fe97d:0x23e},_0x3e15d3={_0x472cff:0x63},_0x4c41d8={_0x454294:0x172};function _0x7f7d4(_0x14c38e,_0x3a22ed,_0x3bc7bd,_0x29edf8){return _0x1af1(_0x29edf8-_0x4c41d8._0x454294,_0x14c38e);}function _0x85fd92(_0x15124b,_0x414982,_0x84c312,_0x5cd9e8){return _0x1af1(_0x414982-_0x3e15d3._0x472cff,_0x5cd9e8);}if(_0x4c79e8[_0x85fd92(0x243,_0x4b3926._0x23008b,_0x4b3926._0x39c6bf,0x239)]===0x0||_0x4c79e8[_0x85fd92(_0x4b3926._0x4fe97d,_0x4b3926._0x23008b,0x231,0x22f)]%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x4c79e8);}function collectImageMatches(_0x23fb4d){const _0x5a4838={_0x51fee1:0x1af,_0x5e4bfa:0x1aa,_0xdbce38:0x1bd,_0x9f8374:0x152,_0x488219:0x147,_0x4e3b56:0x14a,_0x58813e:0x1c5},_0x2a9b25={_0x5853c9:0x5a9,_0x5a1a51:0x5af,_0x455397:0x5b8},_0x1312c6={_0x532601:0x14d,_0x11879c:0x14e,_0x31aa1f:0x6f2};function _0x2c4cae(_0x28a399,_0x1abeb0,_0x27185a,_0x47d29b){return _0x1af1(_0x47d29b- -0x318,_0x27185a);}DATA_URI_REGEX[_0x25aa36(_0x5a4838._0x51fee1,0x1ae,0x1b4,_0x5a4838._0x5e4bfa)]=0x0;function _0x25aa36(_0x45092b,_0x315f57,_0x5dd8b3,_0x46b9bd){return _0x1af1(_0x5dd8b3- -0xf,_0x45092b);}return Array[_0x25aa36(0x1b9,_0x5a4838._0xdbce38,0x1bc,0x1b6)](_0x23fb4d[_0x2c4cae(-0x147,-_0x5a4838._0x9f8374,-_0x5a4838._0x488219,-_0x5a4838._0x4e3b56)](DATA_URI_REGEX))[_0x25aa36(0x1b6,_0x5a4838._0x58813e,0x1be,0x1c3)](_0x200ed4=>{const _0x40f352=(_0x200ed4[0x2]??'')[_0x3ceab0(_0x2a9b25._0x5853c9,_0x2a9b25._0x5a1a51,_0x2a9b25._0x455397,0x5a7)](/[\r\n]/g,'');function _0x3ceab0(_0x1b1634,_0x39de78,_0x3e702f,_0xb7caee){return _0x2c4cae(_0x1b1634-_0x1312c6._0x532601,_0x39de78-_0x1312c6._0x11879c,_0xb7caee,_0x39de78-_0x1312c6._0x31aa1f);}return isValidBase64(_0x40f352);});}function hasPastedImages(_0x136364){const _0x466cc9={_0x4257fa:0x1e8,_0x24dad5:0x1ea};function _0x3607f9(_0x1027d0,_0x4f0733,_0x33453f,_0x5ce9ff){return _0x1af1(_0x4f0733-0x13,_0x33453f);}return collectImageMatches(_0x136364)[_0x3607f9(_0x466cc9._0x4257fa,_0x466cc9._0x24dad5,0x1eb,0x1f0)]>0x0;}function contentFromPastedText(_0x36d7c2){const _0x469f7e={_0xce2ff:0x214,_0xe7f422:0x20a,_0x1ced20:0x20e,_0x9f52ec:0x215,_0x62bcbf:0x20f,_0x53f0b3:0x1fe,_0x12057c:0x1f2,_0x673a53:0x1f5,_0x400e0a:0x201,_0xc5ed2f:0x216,_0xfa23a3:0x20f,_0x5df6ec:0x20d,_0x39e25b:0x20d,_0x5cc5aa:0x1fa,_0x3d6876:0x1f2,_0x28e220:0x202,_0x2a6cfe:0x1fc},_0x30de3e={_0xb8a520:0x3d3},_0x90840e={_0x2f4fe2:0x3d6},_0x2a0b73=collectImageMatches(_0x36d7c2),_0x1ffc35=[];function _0x44065a(_0x22800e,_0x5903bf,_0x58f954,_0x10a8d1){return _0x1af1(_0x10a8d1- -_0x90840e._0x2f4fe2,_0x22800e);}let _0x1068c0=0x0;for(const _0x2c7d7b of _0x2a0b73){const _0x395825=_0x2c7d7b['index']??0x0,[_0x27beb9,_0xcb1654,_0x7f327e]=_0x2c7d7b;_0x395825>_0x1068c0&&_0x1ffc35['push']({'type':_0x52c81c(-0x1fe,-_0x469f7e._0xce2ff,-0x213,-_0x469f7e._0xe7f422),'text':_0x36d7c2[_0x44065a(-_0x469f7e._0xe7f422,-0x211,-0x20f,-0x207)](_0x1068c0,_0x395825)}),_0x1ffc35[_0x52c81c(-0x202,-_0x469f7e._0x1ced20,-0x20d,-0x203)]({'type':'image','source':{'type':_0x52c81c(-_0x469f7e._0x9f52ec,-0x210,-0x207,-_0x469f7e._0x62bcbf),'media_type':normalizeMediaType(_0xcb1654),'data':_0x7f327e[_0x52c81c(-0x1fb,-0x1fa,-0x209,-_0x469f7e._0x53f0b3)](/[\r\n]/g,'')}}),_0x1068c0=_0x395825+_0x27beb9[_0x52c81c(-_0x469f7e._0x12057c,-_0x469f7e._0x673a53,-_0x469f7e._0x400e0a,-0x1fc)];}_0x1068c0<_0x36d7c2[_0x52c81c(-0x1f0,-0x1f7,-0x205,-0x1fc)]&&_0x1ffc35['push']({'type':_0x44065a(-_0x469f7e._0xc5ed2f,-_0x469f7e._0xfa23a3,-0x206,-_0x469f7e._0x5df6ec),'text':_0x36d7c2[_0x52c81c(-0x1f9,-_0x469f7e._0x39e25b,-_0x469f7e._0x5cc5aa,-0x204)](_0x1068c0)});function _0x52c81c(_0x4511db,_0x3eff70,_0x182559,_0x229ef6){return _0x1af1(_0x229ef6- -_0x30de3e._0xb8a520,_0x3eff70);}return _0x1ffc35[_0x52c81c(-0x1f4,-_0x469f7e._0x3d6876,-_0x469f7e._0x28e220,-_0x469f7e._0x2a6cfe)]>0x0?_0x1ffc35:[{'type':'text','text':_0x36d7c2}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};function _0x566f(){const _0x5d080f=['BgfZDeLUzgv4','yMfZzty0','oda3mZmWCvLbq3Pm','mJmWmJe4uNngu21u','mKLNrxfJua','Aw1Hz2uVANbLzW','Dgv4Da','ntG4q0TPy1Ps','zNjVBq','mZniyMzttKq','zMLSDgvY','Bwf0y2HbBgW','C2XPy2u','ChvZAa','ndqZmtnAz3blrhK','ntq4ode2vwrwt0fZ','mtm1mJiWnfb1serSAa','Aw1Hz2uVANbN','CMvWBgfJzq','mJeYmZK5mfbAsKzJBW','BgvUz3rO','mZm2nwXMD3vera','mJDewwffrwi'];_0x566f=function(){return _0x5d080f;};return _0x566f();}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ProviderSessionResolver,
|
|
2
|
-
export {
|
|
3
|
-
import { t as toOpenAiResponsesRequest } from '../provider-adapters-
|
|
1
|
+
import { P as ProviderSessionResolver, r as ResolvedProviderSession, s as ProviderRequestMutator, l as ModelRequest, t as PreparedRequest, C as ChatRequest, u as ProviderCredential, E as EngineChatModel, v as ReasoningConfig, w as ChatResponseChunk, n as ChatResponse, x as ModelExecutionOptions, B as BaseChatModelOptions, y as ModelInfo, z as ModelLimits } from '../types-Df0vlfj-.js';
|
|
2
|
+
export { D as ProviderCredentialKind, F as ProviderEndpoints } from '../types-Df0vlfj-.js';
|
|
3
|
+
import { t as toOpenAiResponsesRequest } from '../provider-adapters-CURkQPbY.js';
|
|
4
4
|
|
|
5
5
|
interface PrepareProviderRequestOptions {
|
|
6
6
|
sessionManager?: ProviderSessionManager;
|
|
@@ -136,6 +136,12 @@ declare class RoutedModel implements EngineChatModel {
|
|
|
136
136
|
path: string;
|
|
137
137
|
signal?: AbortSignal;
|
|
138
138
|
}): Promise<Response>;
|
|
139
|
+
protected getRetryDelayMs(response: Response | undefined, attemptIndex: number): number;
|
|
140
|
+
private shouldRetryResponse;
|
|
141
|
+
private shouldRetryRequestError;
|
|
142
|
+
private shouldRetryStreamAttemptError;
|
|
143
|
+
private waitForRetry;
|
|
144
|
+
private sendWithRetries;
|
|
139
145
|
protected createMissingCredentialError(): Error;
|
|
140
146
|
protected createHeaders(context: ProviderHeaderContext, options: {
|
|
141
147
|
accept: string;
|
|
@@ -189,14 +195,6 @@ declare class OpenAiApiError extends Error {
|
|
|
189
195
|
readonly body: string;
|
|
190
196
|
constructor(status: number, body: string, message: string);
|
|
191
197
|
}
|
|
192
|
-
declare class OpenAiResponsesStreamError extends Error {
|
|
193
|
-
readonly code?: string;
|
|
194
|
-
readonly status?: number;
|
|
195
|
-
constructor(message: string, options?: {
|
|
196
|
-
code?: string;
|
|
197
|
-
status?: number;
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
198
|
declare function createOpenAiResponsesWebSocketEvent(request: ChatRequest, options?: {
|
|
201
199
|
input?: ReturnType<typeof toOpenAiResponsesRequest>["input"];
|
|
202
200
|
previousResponseId?: string;
|
|
@@ -341,4 +339,9 @@ declare class MockModel implements EngineChatModel {
|
|
|
341
339
|
complete(request: ChatRequest, _options?: ModelExecutionOptions): Promise<ChatResponse>;
|
|
342
340
|
}
|
|
343
341
|
|
|
344
|
-
|
|
342
|
+
type RawModelResponse = Record<string, unknown>;
|
|
343
|
+
declare function getFallbackModelLimits(provider: string, model: string): ModelLimits | undefined;
|
|
344
|
+
declare function normalizeModelInfo(provider: string, model: RawModelResponse): ModelInfo;
|
|
345
|
+
declare function normalizeModelLimits(provider: string, model: RawModelResponse): ModelLimits | undefined;
|
|
346
|
+
|
|
347
|
+
export { ANTHROPIC_MESSAGES_STREAM_SURFACE, ANTHROPIC_MESSAGES_SURFACE, AVAILABLE_CHAT_MODEL_SURFACES, type AnthropicHeaderResolver, AnthropicModel, type AnthropicModelOptions, type AnthropicRequestHeadersContext, ChatModel, type ChatModelAuthScheme, type ChatModelOptions, type ChatModelSurface, type FetchJsonOptions, GitHubModel, type GitHubModelOptions, type GitHubModelSurface, MockModel, type MockModelOptions, type ModelSurfaceRouter, type ModelWebSocket, OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE, OPENAI_CHAT_COMPLETIONS_SURFACE, OPENAI_RESPONSES_STREAM_SURFACE, OPENAI_RESPONSES_SURFACE, OPENAI_RESPONSES_WEBSOCKET_SURFACE, OpenAiApiError, type OpenAiHeaderResolver, OpenAiModel, type OpenAiModelOptions, type OpenAiRequestHeadersContext, type PrepareProviderRequestOptions, type ProviderAdapter, ProviderCredential, type ProviderHeaderContext, ProviderRequestMutator, ProviderSessionManager, ProviderSessionResolver, ResolvedProviderSession, RoutedModel, type RoutedModelMode, type RoutedModelOptions, type RoutedModelStreamParser, type RoutedModelSurface, type RoutedModelSurfaceRequest, StaticModelSurfaceRouter, type WebSocketFactory, createAnthropicSurfaces, createDefaultWebSocketFactory, createOpenAiApiError, createOpenAiResponsesStreamParser, createOpenAiResponsesWebSocketEvent, createOpenAiSurfaces, fetchJsonResponse, fetchRawResponse, getFallbackModelLimits, iterateSseEvents, iterateWebSocketMessages, normalizeModelInfo, normalizeModelLimits, prepareProviderRequest, resolveApiCredential, resolveSessionBaseUrl, toWebSocketUrl, trimTrailingSlashes, waitForWebSocketOpen };
|