@tbox-dev-js/sdk 0.1.5 → 0.1.6
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/README.md +161 -47
- package/dist/homepage.d.ts +79 -0
- package/dist/http.d.ts +36 -4
- package/dist/index.cjs +182 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +182 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/types.d.ts +77 -20
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export type { DatasetListParams, DatasetListResult, DatasetInfo, RetrieveParams,
|
|
|
20
20
|
export { TboxPluginClient } from './plugin';
|
|
21
21
|
export { TboxConversationClient } from './conversation';
|
|
22
22
|
export { TboxAppClient } from './app';
|
|
23
|
+
export { TboxHomepageClient } from './homepage';
|
|
23
24
|
export { AmapClient } from './amap';
|
|
24
25
|
export { KnowledgeClient as LegacyKnowledgeClient } from './knowledge';
|
|
25
26
|
export { LlmClient } from './llm';
|
|
26
|
-
export type { TboxPluginClientConfig, SdkResponse, TtsRequest, TtsResponse, AsrRequest, AsrResponse, PluginToolExecRequest, PluginExecResult, PluginInfo, PluginToolInfo, WebSearchRequest, WebSearchResponse, WebSearchItem, WebSearchItemExtra, PaginationResult, ConversationCreateRequest, ConversationQueryRequest, ConversationInfo, MessageQueryRequest, MessageInfo, MessageSaveRequest, UserInfo, DeviceInfo,
|
|
27
|
+
export type { SessionAuth, TboxPluginClientConfig, TboxSessionClientConfig, CreateSessionClientOptions, SdkResponse, TtsRequest, TtsResponse, AsrRequest, AsrResponse, PluginToolExecRequest, PluginExecResult, PluginInfo, PluginToolInfo, WebSearchRequest, WebSearchResponse, WebSearchItem, WebSearchItemExtra, PaginationResult, ConversationCreateRequest, ConversationQueryRequest, ConversationInfo, MessageQueryRequest, MessageInfo, MessageSaveRequest, UserInfo, DeviceInfo, AmapClientConfig, AmapWeatherRequest, AmapWeatherResponse, AmapWeatherLive, AmapWeatherForecast, AmapWeatherForecastCast, AmapGeocodeRequest, AmapGeocodeResponse, AmapGeocode, AmapCyclingRouteRequest, AmapCyclingRouteResponse, AmapCyclingRoute, AmapCyclingPath, AmapIpLocationRequest, AmapIpLocationResponse, AmapPeripheralSearchRequest, AmapPeripheralSearchResponse, AmapPoi, AmapWalkingRouteRequest, AmapWalkingRouteResponse, AmapWalkingRoute, AmapWalkingPath, AmapDrivingRouteRequest, AmapDrivingRouteResponse, AmapDrivingRoute, AmapDrivingPath, AmapEbikeRouteRequest, AmapEbikeRouteResponse, AmapEbikeRoute, AmapEbikePath, AmapTransitRouteRequest, AmapTransitRouteResponse, AmapTransitRoute, AmapTransitItem, AmapTransitCost, AmapDistrictRequest, AmapDistrictResponse, AmapDistrict, AmapDistrictSuggestion, AmapRegeocodeRequest, AmapRegeocodeResponse, AmapRegeocode, AmapAddressComponent, AmapConvertRequest, AmapConvertResponse, AmapPoiSearchRequest, AmapPoiSearchResponse, KnowledgeClientConfig, TableSchemaColumn, TableSchema as LegacyTableSchema, KnowledgeCreateRequest, KnowledgeCreateResponse, KnowledgeUpdateRequest, KnowledgeUpdateResponse, KnowledgeQueryListRequest, KnowledgeQueryListResponse, KnowledgeDatasetInfo, KnowledgeRetrieveRequest, KnowledgeRetrieveResponse, KnowledgeRetrieveItem, HomepageGetRequest, HomepageGetResponse, AppGenerateSessionRequest, AppSessionResult, LlmClientConfig, ChatMessage, StreamOptions, ChatCompletionRequest, ChatCompletionResponse, ChatCompletionChoice, ChatCompletionChunk, ChatCompletionChunkChoice, } from './types';
|
package/dist/index.esm.js
CHANGED
|
@@ -1178,6 +1178,10 @@ let KnowledgeClient$1 = class KnowledgeClient {
|
|
|
1178
1178
|
|
|
1179
1179
|
/**
|
|
1180
1180
|
* 百宝箱插件服务 SDK - 底层 HTTP 请求封装
|
|
1181
|
+
*
|
|
1182
|
+
* 支持两种鉴权模式:
|
|
1183
|
+
* - B端:Authorization header(API Key)
|
|
1184
|
+
* - C端:TBOXSESSIONID + X-Tbox-Channel + X-Tbox-AppId headers
|
|
1181
1185
|
*/
|
|
1182
1186
|
/** 默认调用域名 */
|
|
1183
1187
|
const DEFAULT_BASE_URL = 'https://o.tbox.cn';
|
|
@@ -1197,25 +1201,53 @@ function normalizeResponse(raw) {
|
|
|
1197
1201
|
}
|
|
1198
1202
|
/**
|
|
1199
1203
|
* 底层 HTTP 客户端
|
|
1204
|
+
*
|
|
1205
|
+
* 支持两种构造方式:
|
|
1206
|
+
* - 新版:传入 HttpClientConfig(含 AuthMode)
|
|
1207
|
+
* - 旧版:传入 LegacyHttpClientConfig(含 apiKey,向后兼容)
|
|
1200
1208
|
*/
|
|
1201
1209
|
class HttpClient {
|
|
1202
1210
|
constructor(config) {
|
|
1203
|
-
this.
|
|
1204
|
-
this.apiKey = config.apiKey;
|
|
1211
|
+
this._baseUrl = config.baseUrl.replace(/\/$/, '');
|
|
1205
1212
|
this.timeout = config.timeout;
|
|
1213
|
+
if ('auth' in config) {
|
|
1214
|
+
this.auth = config.auth;
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
this.auth = { type: 'apiKey', apiKey: config.apiKey };
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
/** 获取 base URL */
|
|
1221
|
+
get baseUrl() {
|
|
1222
|
+
return this._baseUrl;
|
|
1223
|
+
}
|
|
1224
|
+
/** 获取鉴权请求头(供外部流式请求等场景使用) */
|
|
1225
|
+
getAuthHeaders() {
|
|
1226
|
+
return this.buildAuthHeaders();
|
|
1227
|
+
}
|
|
1228
|
+
/** 构建鉴权相关的请求头 */
|
|
1229
|
+
buildAuthHeaders() {
|
|
1230
|
+
if (this.auth.type === 'session') {
|
|
1231
|
+
return {
|
|
1232
|
+
TBOXSESSIONID: this.auth.session.sessionId,
|
|
1233
|
+
'X-Tbox-Channel': this.auth.session.channel,
|
|
1234
|
+
'X-Tbox-AppId': this.auth.session.appId,
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
return { Authorization: this.auth.apiKey };
|
|
1206
1238
|
}
|
|
1207
1239
|
/** 构建通用请求头 */
|
|
1208
1240
|
buildHeaders(extra) {
|
|
1209
1241
|
return {
|
|
1210
1242
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
1211
|
-
|
|
1243
|
+
...this.buildAuthHeaders(),
|
|
1212
1244
|
...extra,
|
|
1213
1245
|
};
|
|
1214
1246
|
}
|
|
1215
1247
|
/** 构建 FormData 请求头(不设置 Content-Type,让浏览器自动处理 boundary) */
|
|
1216
1248
|
buildHeadersForFormData(extra) {
|
|
1217
1249
|
return {
|
|
1218
|
-
|
|
1250
|
+
...this.buildAuthHeaders(),
|
|
1219
1251
|
...extra,
|
|
1220
1252
|
};
|
|
1221
1253
|
}
|
|
@@ -1307,7 +1339,7 @@ class HttpClient {
|
|
|
1307
1339
|
base = path;
|
|
1308
1340
|
}
|
|
1309
1341
|
else {
|
|
1310
|
-
base = `${this.
|
|
1342
|
+
base = `${this._baseUrl}${path}`;
|
|
1311
1343
|
}
|
|
1312
1344
|
if (!queryParams || Object.keys(queryParams).length === 0) {
|
|
1313
1345
|
return base;
|
|
@@ -1317,18 +1349,36 @@ class HttpClient {
|
|
|
1317
1349
|
}
|
|
1318
1350
|
/** 解析响应体 */
|
|
1319
1351
|
async parseResponse(response) {
|
|
1320
|
-
|
|
1352
|
+
let text;
|
|
1353
|
+
try {
|
|
1354
|
+
const buffer = await response.arrayBuffer();
|
|
1355
|
+
text = new TextDecoder('utf-8').decode(buffer);
|
|
1356
|
+
}
|
|
1357
|
+
catch {
|
|
1321
1358
|
return {
|
|
1322
1359
|
success: false,
|
|
1323
1360
|
errorCode: `HTTP_${response.status}`,
|
|
1324
1361
|
errorMsg: `HTTP error: ${response.status} ${response.statusText}`,
|
|
1325
1362
|
};
|
|
1326
1363
|
}
|
|
1364
|
+
// 非 200 时也尝试解析响应体,提取服务端返回的真实错误信息
|
|
1365
|
+
if (!response.ok) {
|
|
1366
|
+
try {
|
|
1367
|
+
const errorJson = JSON.parse(text);
|
|
1368
|
+
const errorCode = errorJson.errorCode ?? errorJson.code ?? errorJson.resultCode ?? `HTTP_${response.status}`;
|
|
1369
|
+
const errorMsg = errorJson.errorMsg ?? errorJson.msg ?? errorJson.resultDesc ?? `HTTP error: ${response.status} ${response.statusText}`;
|
|
1370
|
+
return { success: false, errorCode, errorMsg };
|
|
1371
|
+
}
|
|
1372
|
+
catch {
|
|
1373
|
+
return {
|
|
1374
|
+
success: false,
|
|
1375
|
+
errorCode: `HTTP_${response.status}`,
|
|
1376
|
+
errorMsg: `HTTP error: ${response.status} ${response.statusText}`,
|
|
1377
|
+
};
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1327
1380
|
let json;
|
|
1328
1381
|
try {
|
|
1329
|
-
// 使用 arrayBuffer + TextDecoder 确保多字节 UTF-8 字符(如中文)正确解码
|
|
1330
|
-
const buffer = await response.arrayBuffer();
|
|
1331
|
-
const text = new TextDecoder('utf-8').decode(buffer);
|
|
1332
1382
|
json = JSON.parse(text);
|
|
1333
1383
|
}
|
|
1334
1384
|
catch {
|
|
@@ -1348,7 +1398,7 @@ class HttpClient {
|
|
|
1348
1398
|
* 封装 /openapi/v1/plugin 下的全部接口
|
|
1349
1399
|
*/
|
|
1350
1400
|
/** API 路径前缀 */
|
|
1351
|
-
const API_PREFIX$
|
|
1401
|
+
const API_PREFIX$5 = '/openapi/v1/plugin';
|
|
1352
1402
|
/**
|
|
1353
1403
|
* 百宝箱插件服务客户端
|
|
1354
1404
|
*
|
|
@@ -1390,7 +1440,7 @@ class TboxPluginClient {
|
|
|
1390
1440
|
* ```
|
|
1391
1441
|
*/
|
|
1392
1442
|
async doTts(request) {
|
|
1393
|
-
return this.http.post(`${API_PREFIX$
|
|
1443
|
+
return this.http.post(`${API_PREFIX$5}/doTts`, request);
|
|
1394
1444
|
}
|
|
1395
1445
|
// ============================================================
|
|
1396
1446
|
// ASR - 语音转文字
|
|
@@ -1412,7 +1462,7 @@ class TboxPluginClient {
|
|
|
1412
1462
|
* ```
|
|
1413
1463
|
*/
|
|
1414
1464
|
async asrBase64(request) {
|
|
1415
|
-
return this.http.post(`${API_PREFIX$
|
|
1465
|
+
return this.http.post(`${API_PREFIX$5}/asrBase64V2`, request);
|
|
1416
1466
|
}
|
|
1417
1467
|
// ============================================================
|
|
1418
1468
|
// 插件工具执行
|
|
@@ -1439,7 +1489,7 @@ class TboxPluginClient {
|
|
|
1439
1489
|
* ```
|
|
1440
1490
|
*/
|
|
1441
1491
|
async run(pluginToolId, request) {
|
|
1442
|
-
return this.http.post(`${API_PREFIX$
|
|
1492
|
+
return this.http.post(`${API_PREFIX$5}/run/${encodeURIComponent(pluginToolId)}`, request);
|
|
1443
1493
|
}
|
|
1444
1494
|
// ============================================================
|
|
1445
1495
|
// 插件信息查询
|
|
@@ -1461,7 +1511,7 @@ class TboxPluginClient {
|
|
|
1461
1511
|
* ```
|
|
1462
1512
|
*/
|
|
1463
1513
|
async getPluginInfo(pluginId) {
|
|
1464
|
-
return this.http.get(`${API_PREFIX$
|
|
1514
|
+
return this.http.get(`${API_PREFIX$5}/info/${encodeURIComponent(pluginId)}`);
|
|
1465
1515
|
}
|
|
1466
1516
|
/**
|
|
1467
1517
|
* 网络搜索
|
|
@@ -1520,7 +1570,7 @@ TboxPluginClient.WEB_SEARCH_TOOL_ID = '20240611204600000001';
|
|
|
1520
1570
|
* 封装 /openapi/v1/conversation 下的全部接口
|
|
1521
1571
|
*/
|
|
1522
1572
|
/** API 路径前缀 */
|
|
1523
|
-
const API_PREFIX$
|
|
1573
|
+
const API_PREFIX$4 = '/openapi/v1/conversation';
|
|
1524
1574
|
/**
|
|
1525
1575
|
* 百宝箱会话管理客户端
|
|
1526
1576
|
*
|
|
@@ -1568,7 +1618,7 @@ class TboxConversationClient {
|
|
|
1568
1618
|
* ```
|
|
1569
1619
|
*/
|
|
1570
1620
|
async createConversation(request) {
|
|
1571
|
-
return this.http.post(`${API_PREFIX$
|
|
1621
|
+
return this.http.post(`${API_PREFIX$4}/create`, request);
|
|
1572
1622
|
}
|
|
1573
1623
|
/**
|
|
1574
1624
|
* 查询会话列表(分页)
|
|
@@ -1592,7 +1642,7 @@ class TboxConversationClient {
|
|
|
1592
1642
|
* ```
|
|
1593
1643
|
*/
|
|
1594
1644
|
async listConversations(request) {
|
|
1595
|
-
return this.http.post(`${API_PREFIX$
|
|
1645
|
+
return this.http.post(`${API_PREFIX$4}/list`, request);
|
|
1596
1646
|
}
|
|
1597
1647
|
// ============================================================
|
|
1598
1648
|
// 消息管理
|
|
@@ -1618,7 +1668,7 @@ class TboxConversationClient {
|
|
|
1618
1668
|
* ```
|
|
1619
1669
|
*/
|
|
1620
1670
|
async listMessages(request) {
|
|
1621
|
-
return this.http.post(`${API_PREFIX$
|
|
1671
|
+
return this.http.post(`${API_PREFIX$4}/message/list`, request);
|
|
1622
1672
|
}
|
|
1623
1673
|
/**
|
|
1624
1674
|
* 新增会话消息
|
|
@@ -1643,7 +1693,7 @@ class TboxConversationClient {
|
|
|
1643
1693
|
* ```
|
|
1644
1694
|
*/
|
|
1645
1695
|
async saveMessage(request) {
|
|
1646
|
-
return this.http.post(`${API_PREFIX$
|
|
1696
|
+
return this.http.post(`${API_PREFIX$4}/message/save`, request);
|
|
1647
1697
|
}
|
|
1648
1698
|
}
|
|
1649
1699
|
|
|
@@ -1701,6 +1751,116 @@ class TboxAppClient {
|
|
|
1701
1751
|
}
|
|
1702
1752
|
}
|
|
1703
1753
|
|
|
1754
|
+
/**
|
|
1755
|
+
* 百宝箱首页开场白 SDK - HomepageClient 核心类
|
|
1756
|
+
*
|
|
1757
|
+
* 封装 /agent/v1/homepage 下的接口。
|
|
1758
|
+
* 该接口走 C端鉴权(TBOXSESSIONID + X-Tbox-Channel + X-Tbox-AppId)。
|
|
1759
|
+
*/
|
|
1760
|
+
/** API 路径前缀 */
|
|
1761
|
+
const API_PREFIX$3 = '/agent/v1/homepage';
|
|
1762
|
+
/**
|
|
1763
|
+
* 百宝箱首页开场白客户端(C端鉴权)
|
|
1764
|
+
*
|
|
1765
|
+
* @example
|
|
1766
|
+
* ```ts
|
|
1767
|
+
* import { TboxHomepageClient } from '@tbox-dev-js/sdk';
|
|
1768
|
+
*
|
|
1769
|
+
* // 方式一:自动获取 session(推荐)
|
|
1770
|
+
* const client = await TboxHomepageClient.create({
|
|
1771
|
+
* apiKey: 'your-api-key',
|
|
1772
|
+
* appId: '202508APhciU03604644',
|
|
1773
|
+
* userId: 'user-123',
|
|
1774
|
+
* });
|
|
1775
|
+
*
|
|
1776
|
+
* // 方式二:手动传入 session
|
|
1777
|
+
* const client = new TboxHomepageClient({
|
|
1778
|
+
* session: { sessionId: 'xxx', channel: 'alipay_mini_app', appId: '202508APhciU03604644' },
|
|
1779
|
+
* });
|
|
1780
|
+
*
|
|
1781
|
+
* const result = await client.get({ agentId: '202508APhciU03604644' });
|
|
1782
|
+
* if (result.success) {
|
|
1783
|
+
* console.log('开场白:', result.data?.prologue);
|
|
1784
|
+
* }
|
|
1785
|
+
* ```
|
|
1786
|
+
*/
|
|
1787
|
+
class TboxHomepageClient {
|
|
1788
|
+
/**
|
|
1789
|
+
* 使用 C端 Session 鉴权构造
|
|
1790
|
+
*/
|
|
1791
|
+
constructor(config) {
|
|
1792
|
+
this.http = new HttpClient({
|
|
1793
|
+
baseUrl: config.baseUrl ?? DEFAULT_BASE_URL,
|
|
1794
|
+
auth: { type: 'session', session: config.session },
|
|
1795
|
+
timeout: config.timeout,
|
|
1796
|
+
});
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* 便捷工厂方法:通过 B端 apiKey 自动获取 session 并创建 C端客户端
|
|
1800
|
+
*
|
|
1801
|
+
* 内部流程:
|
|
1802
|
+
* 1. 使用 apiKey 调用 TboxAppClient.generateSession() 获取 sessionId + channel
|
|
1803
|
+
* 2. 用获取到的 session 信息创建 C端鉴权的 HomepageClient
|
|
1804
|
+
*
|
|
1805
|
+
* @param options - 创建参数(apiKey、appId、userId)
|
|
1806
|
+
* @returns 已鉴权的 TboxHomepageClient 实例
|
|
1807
|
+
*
|
|
1808
|
+
* @example
|
|
1809
|
+
* ```ts
|
|
1810
|
+
* const client = await TboxHomepageClient.create({
|
|
1811
|
+
* apiKey: 'your-api-key',
|
|
1812
|
+
* appId: '202508APhciU03604644',
|
|
1813
|
+
* userId: 'user-123',
|
|
1814
|
+
* });
|
|
1815
|
+
* ```
|
|
1816
|
+
*/
|
|
1817
|
+
static async create(options) {
|
|
1818
|
+
const appClient = new TboxAppClient({
|
|
1819
|
+
apiKey: options.apiKey,
|
|
1820
|
+
baseUrl: options.baseUrl,
|
|
1821
|
+
timeout: options.timeout,
|
|
1822
|
+
});
|
|
1823
|
+
const sessionResult = await appClient.generateSession({
|
|
1824
|
+
appId: options.appId,
|
|
1825
|
+
userId: options.userId,
|
|
1826
|
+
});
|
|
1827
|
+
if (!sessionResult.success || !sessionResult.data?.sessionId || !sessionResult.data?.channel) {
|
|
1828
|
+
throw new Error(`Failed to generate session: ${sessionResult.errorCode ?? 'UNKNOWN'} - ${sessionResult.errorMsg ?? 'No session data returned'}`);
|
|
1829
|
+
}
|
|
1830
|
+
return new TboxHomepageClient({
|
|
1831
|
+
session: {
|
|
1832
|
+
sessionId: sessionResult.data.sessionId,
|
|
1833
|
+
channel: sessionResult.data.channel,
|
|
1834
|
+
appId: options.appId,
|
|
1835
|
+
},
|
|
1836
|
+
baseUrl: options.baseUrl,
|
|
1837
|
+
timeout: options.timeout,
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* 获取首页开场白
|
|
1842
|
+
*
|
|
1843
|
+
* POST /agent/v1/homepage/get
|
|
1844
|
+
*
|
|
1845
|
+
* @param request - 请求参数,agentId 为必填
|
|
1846
|
+
* @returns 开场白信息,包含开场白文本、推荐问题等
|
|
1847
|
+
*
|
|
1848
|
+
* @example
|
|
1849
|
+
* ```ts
|
|
1850
|
+
* const res = await client.get({
|
|
1851
|
+
* agentId: '202508APhciU03604644',
|
|
1852
|
+
* extInfo: '{}',
|
|
1853
|
+
* });
|
|
1854
|
+
* if (res.success) {
|
|
1855
|
+
* console.log(res.data?.prologue);
|
|
1856
|
+
* }
|
|
1857
|
+
* ```
|
|
1858
|
+
*/
|
|
1859
|
+
async get(request) {
|
|
1860
|
+
return this.http.post(`${API_PREFIX$3}/get`, request);
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1704
1864
|
/**
|
|
1705
1865
|
* 高德地图 SDK - AmapClient 核心类
|
|
1706
1866
|
*
|
|
@@ -2832,12 +2992,12 @@ class LlmClient {
|
|
|
2832
2992
|
* 流式调用 Chat Completions
|
|
2833
2993
|
*/
|
|
2834
2994
|
async *streamChatCompletions(request) {
|
|
2835
|
-
const url = `${this.http
|
|
2995
|
+
const url = `${this.http.baseUrl}${API_PREFIX}/chat/completions`;
|
|
2836
2996
|
const response = await fetch(url, {
|
|
2837
2997
|
method: 'POST',
|
|
2838
2998
|
headers: {
|
|
2839
2999
|
'Content-Type': 'application/json;charset=UTF-8',
|
|
2840
|
-
|
|
3000
|
+
...this.http.getAuthHeaders(),
|
|
2841
3001
|
},
|
|
2842
3002
|
body: JSON.stringify(request),
|
|
2843
3003
|
});
|
|
@@ -2947,5 +3107,5 @@ class LlmClient {
|
|
|
2947
3107
|
}
|
|
2948
3108
|
}
|
|
2949
3109
|
|
|
2950
|
-
export { APIClient, APIError, APIResource, AmapClient, AuthenticationError, BadRequestError, Documents, ForbiddenError, GatewayError, InternalServerError, Knowledge, KnowledgeClient$1 as KnowledgeClient, KnowledgeScopedClient, KnowledgeClient as LegacyKnowledgeClient, LlmClient, NetworkError, NotFoundError, ParseError, RateLimitError, SDK_VERSION, SchemaRegistry, TBOX_BASE_URL, TboxAPI, TboxAppClient, TboxConversationClient, TboxError, TboxPluginClient, TimeoutError, knowledgeSchema };
|
|
3110
|
+
export { APIClient, APIError, APIResource, AmapClient, AuthenticationError, BadRequestError, Documents, ForbiddenError, GatewayError, InternalServerError, Knowledge, KnowledgeClient$1 as KnowledgeClient, KnowledgeScopedClient, KnowledgeClient as LegacyKnowledgeClient, LlmClient, NetworkError, NotFoundError, ParseError, RateLimitError, SDK_VERSION, SchemaRegistry, TBOX_BASE_URL, TboxAPI, TboxAppClient, TboxConversationClient, TboxError, TboxHomepageClient, TboxPluginClient, TimeoutError, knowledgeSchema };
|
|
2951
3111
|
//# sourceMappingURL=index.esm.js.map
|