@crestal/nation-sdk 0.1.31 → 0.1.32

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.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.1.32
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -529,6 +529,53 @@ var AgentApiAxiosParamCreator = function (configuration) {
529
529
  });
530
530
  });
531
531
  },
532
+ /**
533
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
534
+ * @summary Skill History
535
+ * @param {string} aid Agent ID
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ getSkillHistory: function (aid_1) {
540
+ var args_1 = [];
541
+ for (var _i = 1; _i < arguments.length; _i++) {
542
+ args_1[_i - 1] = arguments[_i];
543
+ }
544
+ return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
545
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
546
+ if (options === void 0) { options = {}; }
547
+ return __generator(this, function (_a) {
548
+ switch (_a.label) {
549
+ case 0:
550
+ // verify required parameter 'aid' is not null or undefined
551
+ (0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
552
+ localVarPath = "/agents/{aid}/skill/history"
553
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
554
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
555
+ if (configuration) {
556
+ baseOptions = configuration.baseOptions;
557
+ }
558
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
559
+ localVarHeaderParameter = {};
560
+ localVarQueryParameter = {};
561
+ // authentication HTTPBearer required
562
+ // http bearer authentication required
563
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
564
+ case 1:
565
+ // authentication HTTPBearer required
566
+ // http bearer authentication required
567
+ _a.sent();
568
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
569
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
571
+ return [2 /*return*/, {
572
+ url: (0, common_1.toPathString)(localVarUrlObj),
573
+ options: localVarRequestOptions,
574
+ }];
575
+ }
576
+ });
577
+ });
578
+ },
532
579
  /**
533
580
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
534
581
  * @summary Import Agent
@@ -908,6 +955,29 @@ var AgentApiFp = function (configuration) {
908
955
  });
909
956
  });
910
957
  },
958
+ /**
959
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
960
+ * @summary Skill History
961
+ * @param {string} aid Agent ID
962
+ * @param {*} [options] Override http request option.
963
+ * @throws {RequiredError}
964
+ */
965
+ getSkillHistory: function (aid, options) {
966
+ return __awaiter(this, void 0, void 0, function () {
967
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
968
+ var _a, _b, _c;
969
+ return __generator(this, function (_d) {
970
+ switch (_d.label) {
971
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
972
+ case 1:
973
+ localVarAxiosArgs = _d.sent();
974
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
975
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AgentApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
976
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
977
+ }
978
+ });
979
+ });
980
+ },
911
981
  /**
912
982
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
913
983
  * @summary Import Agent
@@ -1089,6 +1159,16 @@ var AgentApiFactory = function (configuration, basePath, axios) {
1089
1159
  getAgents: function (sort, cursor, limit, options) {
1090
1160
  return localVarFp.getAgents(sort, cursor, limit, options).then(function (request) { return request(axios, basePath); });
1091
1161
  },
1162
+ /**
1163
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1164
+ * @summary Skill History
1165
+ * @param {string} aid Agent ID
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ getSkillHistory: function (aid, options) {
1170
+ return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
1171
+ },
1092
1172
  /**
1093
1173
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
1094
1174
  * @summary Import Agent
@@ -1219,6 +1299,18 @@ var AgentApi = /** @class */ (function (_super) {
1219
1299
  var _this = this;
1220
1300
  return (0, exports.AgentApiFp)(this.configuration).getAgents(sort, cursor, limit, options).then(function (request) { return request(_this.axios, _this.basePath); });
1221
1301
  };
1302
+ /**
1303
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1304
+ * @summary Skill History
1305
+ * @param {string} aid Agent ID
1306
+ * @param {*} [options] Override http request option.
1307
+ * @throws {RequiredError}
1308
+ * @memberof AgentApi
1309
+ */
1310
+ AgentApi.prototype.getSkillHistory = function (aid, options) {
1311
+ var _this = this;
1312
+ return (0, exports.AgentApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
1313
+ };
1222
1314
  /**
1223
1315
  * Import agent configuration from YAML file. Only updates existing agents, will not create new ones. **Path Parameters:** * `agent_id` - ID of the agent to update **Request Body:** * `file` - YAML file containing agent configuration **Returns:** * `str` - Success message **Raises:** * `HTTPException`: - 400: Invalid YAML or agent configuration - 404: Agent not found - 500: Server error
1224
1316
  * @summary Import Agent
@@ -1489,6 +1581,53 @@ var ChatApiAxiosParamCreator = function (configuration) {
1489
1581
  });
1490
1582
  });
1491
1583
  },
1584
+ /**
1585
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
1586
+ * @summary Skill History
1587
+ * @param {string} aid Agent ID
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ */
1591
+ getSkillHistory: function (aid_1) {
1592
+ var args_1 = [];
1593
+ for (var _i = 1; _i < arguments.length; _i++) {
1594
+ args_1[_i - 1] = arguments[_i];
1595
+ }
1596
+ return __awaiter(_this, __spreadArray([aid_1], args_1, true), void 0, function (aid, options) {
1597
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1598
+ if (options === void 0) { options = {}; }
1599
+ return __generator(this, function (_a) {
1600
+ switch (_a.label) {
1601
+ case 0:
1602
+ // verify required parameter 'aid' is not null or undefined
1603
+ (0, common_1.assertParamExists)('getSkillHistory', 'aid', aid);
1604
+ localVarPath = "/agents/{aid}/skill/history"
1605
+ .replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
1606
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1607
+ if (configuration) {
1608
+ baseOptions = configuration.baseOptions;
1609
+ }
1610
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1611
+ localVarHeaderParameter = {};
1612
+ localVarQueryParameter = {};
1613
+ // authentication HTTPBearer required
1614
+ // http bearer authentication required
1615
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1616
+ case 1:
1617
+ // authentication HTTPBearer required
1618
+ // http bearer authentication required
1619
+ _a.sent();
1620
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1621
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1622
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1623
+ return [2 /*return*/, {
1624
+ url: (0, common_1.toPathString)(localVarUrlObj),
1625
+ options: localVarRequestOptions,
1626
+ }];
1627
+ }
1628
+ });
1629
+ });
1630
+ },
1492
1631
  /**
1493
1632
  * Retrieve all chat threads associated with a specific agent for the current user.
1494
1633
  * @summary List chat threads for an agent
@@ -1647,7 +1786,7 @@ var ChatApiAxiosParamCreator = function (configuration) {
1647
1786
  });
1648
1787
  },
1649
1788
  /**
1650
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
1789
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
1651
1790
  * @summary Send a message to a chat thread
1652
1791
  * @param {string} aid Agent ID
1653
1792
  * @param {string} chatId Chat ID
@@ -1862,6 +2001,29 @@ var ChatApiFp = function (configuration) {
1862
2001
  });
1863
2002
  });
1864
2003
  },
2004
+ /**
2005
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2006
+ * @summary Skill History
2007
+ * @param {string} aid Agent ID
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ getSkillHistory: function (aid, options) {
2012
+ return __awaiter(this, void 0, void 0, function () {
2013
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2014
+ var _a, _b, _c;
2015
+ return __generator(this, function (_d) {
2016
+ switch (_d.label) {
2017
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillHistory(aid, options)];
2018
+ case 1:
2019
+ localVarAxiosArgs = _d.sent();
2020
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2021
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChatApi.getSkillHistory']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2022
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2023
+ }
2024
+ });
2025
+ });
2026
+ },
1865
2027
  /**
1866
2028
  * Retrieve all chat threads associated with a specific agent for the current user.
1867
2029
  * @summary List chat threads for an agent
@@ -1936,7 +2098,7 @@ var ChatApiFp = function (configuration) {
1936
2098
  });
1937
2099
  },
1938
2100
  /**
1939
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2101
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
1940
2102
  * @summary Send a message to a chat thread
1941
2103
  * @param {string} aid Agent ID
1942
2104
  * @param {string} chatId Chat ID
@@ -2037,6 +2199,16 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2037
2199
  getMessageById: function (messageId, options) {
2038
2200
  return localVarFp.getMessageById(messageId, options).then(function (request) { return request(axios, basePath); });
2039
2201
  },
2202
+ /**
2203
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2204
+ * @summary Skill History
2205
+ * @param {string} aid Agent ID
2206
+ * @param {*} [options] Override http request option.
2207
+ * @throws {RequiredError}
2208
+ */
2209
+ getSkillHistory: function (aid, options) {
2210
+ return localVarFp.getSkillHistory(aid, options).then(function (request) { return request(axios, basePath); });
2211
+ },
2040
2212
  /**
2041
2213
  * Retrieve all chat threads associated with a specific agent for the current user.
2042
2214
  * @summary List chat threads for an agent
@@ -2072,7 +2244,7 @@ var ChatApiFactory = function (configuration, basePath, axios) {
2072
2244
  return localVarFp.retryMessageInChat(aid, chatId, options).then(function (request) { return request(axios, basePath); });
2073
2245
  },
2074
2246
  /**
2075
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2247
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
2076
2248
  * @summary Send a message to a chat thread
2077
2249
  * @param {string} aid Agent ID
2078
2250
  * @param {string} chatId Chat ID
@@ -2159,6 +2331,18 @@ var ChatApi = /** @class */ (function (_super) {
2159
2331
  var _this = this;
2160
2332
  return (0, exports.ChatApiFp)(this.configuration).getMessageById(messageId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2161
2333
  };
2334
+ /**
2335
+ * Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
2336
+ * @summary Skill History
2337
+ * @param {string} aid Agent ID
2338
+ * @param {*} [options] Override http request option.
2339
+ * @throws {RequiredError}
2340
+ * @memberof ChatApi
2341
+ */
2342
+ ChatApi.prototype.getSkillHistory = function (aid, options) {
2343
+ var _this = this;
2344
+ return (0, exports.ChatApiFp)(this.configuration).getSkillHistory(aid, options).then(function (request) { return request(_this.axios, _this.basePath); });
2345
+ };
2162
2346
  /**
2163
2347
  * Retrieve all chat threads associated with a specific agent for the current user.
2164
2348
  * @summary List chat threads for an agent
@@ -2200,7 +2384,7 @@ var ChatApi = /** @class */ (function (_super) {
2200
2384
  return (0, exports.ChatApiFp)(this.configuration).retryMessageInChat(aid, chatId, options).then(function (request) { return request(_this.axios, _this.basePath); });
2201
2385
  };
2202
2386
  /**
2203
- * Send a new message to a specific chat thread. Supports streaming responses if requested.
2387
+ * Send a new message to a specific chat thread. The response is a list of messages generated by the agent.The response not include the original user message. It could be skill calls, agent messages, or system error messages. If the stream mode is requested, the response will be HTTP2 streaming response.
2204
2388
  * @summary Send a message to a chat thread
2205
2389
  * @param {string} aid Agent ID
2206
2390
  * @param {string} chatId Chat ID
@@ -3117,7 +3301,7 @@ var HealthApiAxiosParamCreator = function (configuration) {
3117
3301
  * @param {*} [options] Override http request option.
3118
3302
  * @throws {RequiredError}
3119
3303
  */
3120
- healthCheckHealthGet: function () {
3304
+ healthCheck: function () {
3121
3305
  var args_1 = [];
3122
3306
  for (var _i = 0; _i < arguments.length; _i++) {
3123
3307
  args_1[_i] = arguments[_i];
@@ -3160,17 +3344,17 @@ var HealthApiFp = function (configuration) {
3160
3344
  * @param {*} [options] Override http request option.
3161
3345
  * @throws {RequiredError}
3162
3346
  */
3163
- healthCheckHealthGet: function (options) {
3347
+ healthCheck: function (options) {
3164
3348
  return __awaiter(this, void 0, void 0, function () {
3165
3349
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3166
3350
  var _a, _b, _c;
3167
3351
  return __generator(this, function (_d) {
3168
3352
  switch (_d.label) {
3169
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.healthCheckHealthGet(options)];
3353
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.healthCheck(options)];
3170
3354
  case 1:
3171
3355
  localVarAxiosArgs = _d.sent();
3172
3356
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3173
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthCheckHealthGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3357
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['HealthApi.healthCheck']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3174
3358
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3175
3359
  }
3176
3360
  });
@@ -3192,8 +3376,8 @@ var HealthApiFactory = function (configuration, basePath, axios) {
3192
3376
  * @param {*} [options] Override http request option.
3193
3377
  * @throws {RequiredError}
3194
3378
  */
3195
- healthCheckHealthGet: function (options) {
3196
- return localVarFp.healthCheckHealthGet(options).then(function (request) { return request(axios, basePath); });
3379
+ healthCheck: function (options) {
3380
+ return localVarFp.healthCheck(options).then(function (request) { return request(axios, basePath); });
3197
3381
  },
3198
3382
  };
3199
3383
  };
@@ -3216,9 +3400,9 @@ var HealthApi = /** @class */ (function (_super) {
3216
3400
  * @throws {RequiredError}
3217
3401
  * @memberof HealthApi
3218
3402
  */
3219
- HealthApi.prototype.healthCheckHealthGet = function (options) {
3403
+ HealthApi.prototype.healthCheck = function (options) {
3220
3404
  var _this = this;
3221
- return (0, exports.HealthApiFp)(this.configuration).healthCheckHealthGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3405
+ return (0, exports.HealthApiFp)(this.configuration).healthCheck(options).then(function (request) { return request(_this.axios, _this.basePath); });
3222
3406
  };
3223
3407
  return HealthApi;
3224
3408
  }(base_1.BaseAPI));
@@ -3269,7 +3453,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
3269
3453
  * @param {*} [options] Override http request option.
3270
3454
  * @throws {RequiredError}
3271
3455
  */
3272
- getLlmsMetadataLlmsGet: function () {
3456
+ getLlms: function () {
3273
3457
  var args_1 = [];
3274
3458
  for (var _i = 0; _i < arguments.length; _i++) {
3275
3459
  args_1[_i] = arguments[_i];
@@ -3384,7 +3568,7 @@ var MetadataApiAxiosParamCreator = function (configuration) {
3384
3568
  * @param {*} [options] Override http request option.
3385
3569
  * @throws {RequiredError}
3386
3570
  */
3387
- getSkillsMetadataSkillsGet: function () {
3571
+ getSkills: function () {
3388
3572
  var args_1 = [];
3389
3573
  for (var _i = 0; _i < arguments.length; _i++) {
3390
3574
  args_1[_i] = arguments[_i];
@@ -3449,17 +3633,17 @@ var MetadataApiFp = function (configuration) {
3449
3633
  * @param {*} [options] Override http request option.
3450
3634
  * @throws {RequiredError}
3451
3635
  */
3452
- getLlmsMetadataLlmsGet: function (options) {
3636
+ getLlms: function (options) {
3453
3637
  return __awaiter(this, void 0, void 0, function () {
3454
3638
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3455
3639
  var _a, _b, _c;
3456
3640
  return __generator(this, function (_d) {
3457
3641
  switch (_d.label) {
3458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlmsMetadataLlmsGet(options)];
3642
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getLlms(options)];
3459
3643
  case 1:
3460
3644
  localVarAxiosArgs = _d.sent();
3461
3645
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3462
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getLlmsMetadataLlmsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3646
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getLlms']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3463
3647
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3464
3648
  }
3465
3649
  });
@@ -3519,17 +3703,17 @@ var MetadataApiFp = function (configuration) {
3519
3703
  * @param {*} [options] Override http request option.
3520
3704
  * @throws {RequiredError}
3521
3705
  */
3522
- getSkillsMetadataSkillsGet: function (options) {
3706
+ getSkills: function (options) {
3523
3707
  return __awaiter(this, void 0, void 0, function () {
3524
3708
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3525
3709
  var _a, _b, _c;
3526
3710
  return __generator(this, function (_d) {
3527
3711
  switch (_d.label) {
3528
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkillsMetadataSkillsGet(options)];
3712
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSkills(options)];
3529
3713
  case 1:
3530
3714
  localVarAxiosArgs = _d.sent();
3531
3715
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3532
- localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getSkillsMetadataSkillsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3716
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetadataApi.getSkills']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3533
3717
  return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3534
3718
  }
3535
3719
  });
@@ -3560,8 +3744,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
3560
3744
  * @param {*} [options] Override http request option.
3561
3745
  * @throws {RequiredError}
3562
3746
  */
3563
- getLlmsMetadataLlmsGet: function (options) {
3564
- return localVarFp.getLlmsMetadataLlmsGet(options).then(function (request) { return request(axios, basePath); });
3747
+ getLlms: function (options) {
3748
+ return localVarFp.getLlms(options).then(function (request) { return request(axios, basePath); });
3565
3749
  },
3566
3750
  /**
3567
3751
  * Get the icon for a specific skill
@@ -3591,8 +3775,8 @@ var MetadataApiFactory = function (configuration, basePath, axios) {
3591
3775
  * @param {*} [options] Override http request option.
3592
3776
  * @throws {RequiredError}
3593
3777
  */
3594
- getSkillsMetadataSkillsGet: function (options) {
3595
- return localVarFp.getSkillsMetadataSkillsGet(options).then(function (request) { return request(axios, basePath); });
3778
+ getSkills: function (options) {
3779
+ return localVarFp.getSkills(options).then(function (request) { return request(axios, basePath); });
3596
3780
  },
3597
3781
  };
3598
3782
  };
@@ -3626,9 +3810,9 @@ var MetadataApi = /** @class */ (function (_super) {
3626
3810
  * @throws {RequiredError}
3627
3811
  * @memberof MetadataApi
3628
3812
  */
3629
- MetadataApi.prototype.getLlmsMetadataLlmsGet = function (options) {
3813
+ MetadataApi.prototype.getLlms = function (options) {
3630
3814
  var _this = this;
3631
- return (0, exports.MetadataApiFp)(this.configuration).getLlmsMetadataLlmsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3815
+ return (0, exports.MetadataApiFp)(this.configuration).getLlms(options).then(function (request) { return request(_this.axios, _this.basePath); });
3632
3816
  };
3633
3817
  /**
3634
3818
  * Get the icon for a specific skill
@@ -3663,9 +3847,9 @@ var MetadataApi = /** @class */ (function (_super) {
3663
3847
  * @throws {RequiredError}
3664
3848
  * @memberof MetadataApi
3665
3849
  */
3666
- MetadataApi.prototype.getSkillsMetadataSkillsGet = function (options) {
3850
+ MetadataApi.prototype.getSkills = function (options) {
3667
3851
  var _this = this;
3668
- return (0, exports.MetadataApiFp)(this.configuration).getSkillsMetadataSkillsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
3852
+ return (0, exports.MetadataApiFp)(this.configuration).getSkills(options).then(function (request) { return request(_this.axios, _this.basePath); });
3669
3853
  };
3670
3854
  return MetadataApi;
3671
3855
  }(base_1.BaseAPI));
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.1.32
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.1.32
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.1.32
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.1.32
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.1.32
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.1.32
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.1.31
5
+ * The version of the OpenAPI document: 0.1.32
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.1.31
8
+ * The version of the OpenAPI document: 0.1.32
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/AgentApi.md CHANGED
@@ -9,6 +9,7 @@ All URIs are relative to *http://localhost*
9
9
  |[**getAgent**](#getagent) | **GET** /agents/{agent_id} | Get Agent|
10
10
  |[**getAgentStatistics**](#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics|
11
11
  |[**getAgents**](#getagents) | **GET** /agents | Get Agents|
12
+ |[**getSkillHistory**](#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History|
12
13
  |[**importAgent**](#importagent) | **PUT** /agents/{agent_id}/import | Import Agent|
13
14
  |[**overrideAgent**](#overrideagent) | **PUT** /agents/{agent_id} | Override Agent|
14
15
  |[**updateAgent**](#updateagent) | **PATCH** /agents/{agent_id} | Update Agent|
@@ -277,6 +278,58 @@ No authorization required
277
278
  - **Accept**: application/json
278
279
 
279
280
 
281
+ ### HTTP response details
282
+ | Status code | Description | Response headers |
283
+ |-------------|-------------|------------------|
284
+ |**200** | Successful Response | - |
285
+ |**422** | Validation Error | - |
286
+
287
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
288
+
289
+ # **getSkillHistory**
290
+ > Array<ChatMessageSkillCall> getSkillHistory()
291
+
292
+ Get last 50 skill calls for a specific agent. **Path Parameters:** * `aid` - Agent ID **Returns:** * `List[ChatMessageSkillCall]` - List of skill calls, ordered by creation time ascending **Raises:** * `404` - Agent not found
293
+
294
+ ### Example
295
+
296
+ ```typescript
297
+ import {
298
+ AgentApi,
299
+ Configuration
300
+ } from '@crestal/nation-sdk';
301
+
302
+ const configuration = new Configuration();
303
+ const apiInstance = new AgentApi(configuration);
304
+
305
+ let aid: string; //Agent ID (default to undefined)
306
+
307
+ const { status, data } = await apiInstance.getSkillHistory(
308
+ aid
309
+ );
310
+ ```
311
+
312
+ ### Parameters
313
+
314
+ |Name | Type | Description | Notes|
315
+ |------------- | ------------- | ------------- | -------------|
316
+ | **aid** | [**string**] | Agent ID | defaults to undefined|
317
+
318
+
319
+ ### Return type
320
+
321
+ **Array<ChatMessageSkillCall>**
322
+
323
+ ### Authorization
324
+
325
+ [HTTPBearer](../README.md#HTTPBearer)
326
+
327
+ ### HTTP request headers
328
+
329
+ - **Content-Type**: Not defined
330
+ - **Accept**: application/json
331
+
332
+
280
333
  ### HTTP response details
281
334
  | Status code | Description | Response headers |
282
335
  |-------------|-------------|------------------|