@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/README.md +7 -5
- package/api.ts +175 -29
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +83 -17
- package/dist/api.js +213 -29
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/AgentApi.md +53 -0
- package/docs/ChatApi.md +54 -1
- package/docs/HealthApi.md +4 -4
- package/docs/LLMModelInfoWithProviderName.md +2 -2
- package/docs/MetadataApi.md +8 -8
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.1.
|
|
1
|
+
## @crestal/nation-sdk@0.1.32
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @crestal/nation-sdk@0.1.
|
|
39
|
+
npm install @crestal/nation-sdk@0.1.32 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -56,6 +56,7 @@ Class | Method | HTTP request | Description
|
|
|
56
56
|
*AgentApi* | [**getAgent**](docs/AgentApi.md#getagent) | **GET** /agents/{agent_id} | Get Agent
|
|
57
57
|
*AgentApi* | [**getAgentStatistics**](docs/AgentApi.md#getagentstatistics) | **GET** /agents/{aid}/statistics | Get Agent Statistics
|
|
58
58
|
*AgentApi* | [**getAgents**](docs/AgentApi.md#getagents) | **GET** /agents | Get Agents
|
|
59
|
+
*AgentApi* | [**getSkillHistory**](docs/AgentApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
|
|
59
60
|
*AgentApi* | [**importAgent**](docs/AgentApi.md#importagent) | **PUT** /agents/{agent_id}/import | Import Agent
|
|
60
61
|
*AgentApi* | [**overrideAgent**](docs/AgentApi.md#overrideagent) | **PUT** /agents/{agent_id} | Override Agent
|
|
61
62
|
*AgentApi* | [**updateAgent**](docs/AgentApi.md#updateagent) | **PATCH** /agents/{agent_id} | Update Agent
|
|
@@ -65,6 +66,7 @@ Class | Method | HTTP request | Description
|
|
|
65
66
|
*ChatApi* | [**deleteChatThread**](docs/ChatApi.md#deletechatthread) | **DELETE** /agents/{aid}/chats/{chat_id} | Delete a chat thread
|
|
66
67
|
*ChatApi* | [**getChatThreadById**](docs/ChatApi.md#getchatthreadbyid) | **GET** /agents/{aid}/chats/{chat_id} | Get chat thread by ID
|
|
67
68
|
*ChatApi* | [**getMessageById**](docs/ChatApi.md#getmessagebyid) | **GET** /messages/{message_id} | Get message by ID
|
|
69
|
+
*ChatApi* | [**getSkillHistory**](docs/ChatApi.md#getskillhistory) | **GET** /agents/{aid}/skill/history | Skill History
|
|
68
70
|
*ChatApi* | [**listChatsForAgent**](docs/ChatApi.md#listchatsforagent) | **GET** /agents/{aid}/chats | List chat threads for an agent
|
|
69
71
|
*ChatApi* | [**listMessagesInChat**](docs/ChatApi.md#listmessagesinchat) | **GET** /agents/{aid}/chats/{chat_id}/messages | List messages in a chat thread
|
|
70
72
|
*ChatApi* | [**retryMessageInChat**](docs/ChatApi.md#retrymessageinchat) | **POST** /agents/{aid}/chats/{chat_id}/messages/retry | Retry a message in a chat thread
|
|
@@ -78,12 +80,12 @@ Class | Method | HTTP request | Description
|
|
|
78
80
|
*GeneratorApi* | [**generateAgent**](docs/GeneratorApi.md#generateagent) | **POST** /generator/agent/generate | Generate Agent from Natural Language Prompt
|
|
79
81
|
*GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
|
|
80
82
|
*GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
|
|
81
|
-
*HealthApi* | [**
|
|
83
|
+
*HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
|
|
82
84
|
*MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
|
|
83
|
-
*MetadataApi* | [**
|
|
85
|
+
*MetadataApi* | [**getLlms**](docs/MetadataApi.md#getllms) | **GET** /metadata/llms | Get all LLM models
|
|
84
86
|
*MetadataApi* | [**getSkillIcon**](docs/MetadataApi.md#getskillicon) | **GET** /metadata/skills/{skill}/{icon_name}.{ext} | Get skill icon
|
|
85
87
|
*MetadataApi* | [**getSkillSchema**](docs/MetadataApi.md#getskillschema) | **GET** /metadata/skills/{skill}/schema.json | Get skill schema
|
|
86
|
-
*MetadataApi* | [**
|
|
88
|
+
*MetadataApi* | [**getSkills**](docs/MetadataApi.md#getskills) | **GET** /metadata/skills | Get all skills
|
|
87
89
|
*OAuthApi* | [**getTwitterAuthUrl**](docs/OAuthApi.md#gettwitterauthurl) | **GET** /oauth/twitter | Get Twitter Auth Url
|
|
88
90
|
*OAuthApi* | [**twitterOauthCallback**](docs/OAuthApi.md#twitteroauthcallback) | **GET** /oauth/twitter/callback | Twitter Oauth Callback
|
|
89
91
|
*OAuthApi* | [**unlinkTwitter**](docs/OAuthApi.md#unlinktwitter) | **PUT** /oauth/twitter/unlink | Unlink Twitter Endpoint
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Nation IntentKit API
|
|
5
5
|
* API for Nation IntentKit services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.1.
|
|
7
|
+
* The version of the OpenAPI document: 0.1.32
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2904,6 +2904,44 @@ export const AgentApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2904
2904
|
|
|
2905
2905
|
|
|
2906
2906
|
|
|
2907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2909
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2910
|
+
|
|
2911
|
+
return {
|
|
2912
|
+
url: toPathString(localVarUrlObj),
|
|
2913
|
+
options: localVarRequestOptions,
|
|
2914
|
+
};
|
|
2915
|
+
},
|
|
2916
|
+
/**
|
|
2917
|
+
* 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
|
|
2918
|
+
* @summary Skill History
|
|
2919
|
+
* @param {string} aid Agent ID
|
|
2920
|
+
* @param {*} [options] Override http request option.
|
|
2921
|
+
* @throws {RequiredError}
|
|
2922
|
+
*/
|
|
2923
|
+
getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2924
|
+
// verify required parameter 'aid' is not null or undefined
|
|
2925
|
+
assertParamExists('getSkillHistory', 'aid', aid)
|
|
2926
|
+
const localVarPath = `/agents/{aid}/skill/history`
|
|
2927
|
+
.replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
|
|
2928
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2929
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2930
|
+
let baseOptions;
|
|
2931
|
+
if (configuration) {
|
|
2932
|
+
baseOptions = configuration.baseOptions;
|
|
2933
|
+
}
|
|
2934
|
+
|
|
2935
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2936
|
+
const localVarHeaderParameter = {} as any;
|
|
2937
|
+
const localVarQueryParameter = {} as any;
|
|
2938
|
+
|
|
2939
|
+
// authentication HTTPBearer required
|
|
2940
|
+
// http bearer authentication required
|
|
2941
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2942
|
+
|
|
2943
|
+
|
|
2944
|
+
|
|
2907
2945
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2908
2946
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2909
2947
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3203,6 +3241,19 @@ export const AgentApiFp = function(configuration?: Configuration) {
|
|
|
3203
3241
|
const localVarOperationServerBasePath = operationServerMap['AgentApi.getAgents']?.[localVarOperationServerIndex]?.url;
|
|
3204
3242
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3205
3243
|
},
|
|
3244
|
+
/**
|
|
3245
|
+
* 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
|
|
3246
|
+
* @summary Skill History
|
|
3247
|
+
* @param {string} aid Agent ID
|
|
3248
|
+
* @param {*} [options] Override http request option.
|
|
3249
|
+
* @throws {RequiredError}
|
|
3250
|
+
*/
|
|
3251
|
+
async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
|
|
3252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
|
|
3253
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3254
|
+
const localVarOperationServerBasePath = operationServerMap['AgentApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
|
|
3255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3256
|
+
},
|
|
3206
3257
|
/**
|
|
3207
3258
|
* 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
|
|
3208
3259
|
* @summary Import Agent
|
|
@@ -3334,6 +3385,16 @@ export const AgentApiFactory = function (configuration?: Configuration, basePath
|
|
|
3334
3385
|
getAgents(sort?: AgentSortOption, cursor?: string | null, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<AgentListResponse> {
|
|
3335
3386
|
return localVarFp.getAgents(sort, cursor, limit, options).then((request) => request(axios, basePath));
|
|
3336
3387
|
},
|
|
3388
|
+
/**
|
|
3389
|
+
* 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
|
|
3390
|
+
* @summary Skill History
|
|
3391
|
+
* @param {string} aid Agent ID
|
|
3392
|
+
* @param {*} [options] Override http request option.
|
|
3393
|
+
* @throws {RequiredError}
|
|
3394
|
+
*/
|
|
3395
|
+
getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
|
|
3396
|
+
return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
|
|
3397
|
+
},
|
|
3337
3398
|
/**
|
|
3338
3399
|
* 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
|
|
3339
3400
|
* @summary Import Agent
|
|
@@ -3460,6 +3521,18 @@ export class AgentApi extends BaseAPI {
|
|
|
3460
3521
|
return AgentApiFp(this.configuration).getAgents(sort, cursor, limit, options).then((request) => request(this.axios, this.basePath));
|
|
3461
3522
|
}
|
|
3462
3523
|
|
|
3524
|
+
/**
|
|
3525
|
+
* 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
|
|
3526
|
+
* @summary Skill History
|
|
3527
|
+
* @param {string} aid Agent ID
|
|
3528
|
+
* @param {*} [options] Override http request option.
|
|
3529
|
+
* @throws {RequiredError}
|
|
3530
|
+
* @memberof AgentApi
|
|
3531
|
+
*/
|
|
3532
|
+
public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
|
|
3533
|
+
return AgentApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3463
3536
|
/**
|
|
3464
3537
|
* 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
|
|
3465
3538
|
* @summary Import Agent
|
|
@@ -3684,6 +3757,44 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
3684
3757
|
|
|
3685
3758
|
|
|
3686
3759
|
|
|
3760
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3762
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3763
|
+
|
|
3764
|
+
return {
|
|
3765
|
+
url: toPathString(localVarUrlObj),
|
|
3766
|
+
options: localVarRequestOptions,
|
|
3767
|
+
};
|
|
3768
|
+
},
|
|
3769
|
+
/**
|
|
3770
|
+
* 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
|
|
3771
|
+
* @summary Skill History
|
|
3772
|
+
* @param {string} aid Agent ID
|
|
3773
|
+
* @param {*} [options] Override http request option.
|
|
3774
|
+
* @throws {RequiredError}
|
|
3775
|
+
*/
|
|
3776
|
+
getSkillHistory: async (aid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3777
|
+
// verify required parameter 'aid' is not null or undefined
|
|
3778
|
+
assertParamExists('getSkillHistory', 'aid', aid)
|
|
3779
|
+
const localVarPath = `/agents/{aid}/skill/history`
|
|
3780
|
+
.replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
|
|
3781
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3782
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3783
|
+
let baseOptions;
|
|
3784
|
+
if (configuration) {
|
|
3785
|
+
baseOptions = configuration.baseOptions;
|
|
3786
|
+
}
|
|
3787
|
+
|
|
3788
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3789
|
+
const localVarHeaderParameter = {} as any;
|
|
3790
|
+
const localVarQueryParameter = {} as any;
|
|
3791
|
+
|
|
3792
|
+
// authentication HTTPBearer required
|
|
3793
|
+
// http bearer authentication required
|
|
3794
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
|
|
3687
3798
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3688
3799
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3689
3800
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3826,7 +3937,7 @@ export const ChatApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
3826
3937
|
};
|
|
3827
3938
|
},
|
|
3828
3939
|
/**
|
|
3829
|
-
* Send a new message to a specific chat thread.
|
|
3940
|
+
* 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.
|
|
3830
3941
|
* @summary Send a message to a chat thread
|
|
3831
3942
|
* @param {string} aid Agent ID
|
|
3832
3943
|
* @param {string} chatId Chat ID
|
|
@@ -3985,6 +4096,19 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
3985
4096
|
const localVarOperationServerBasePath = operationServerMap['ChatApi.getMessageById']?.[localVarOperationServerIndex]?.url;
|
|
3986
4097
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3987
4098
|
},
|
|
4099
|
+
/**
|
|
4100
|
+
* 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
|
|
4101
|
+
* @summary Skill History
|
|
4102
|
+
* @param {string} aid Agent ID
|
|
4103
|
+
* @param {*} [options] Override http request option.
|
|
4104
|
+
* @throws {RequiredError}
|
|
4105
|
+
*/
|
|
4106
|
+
async getSkillHistory(aid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessageSkillCall>>> {
|
|
4107
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkillHistory(aid, options);
|
|
4108
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4109
|
+
const localVarOperationServerBasePath = operationServerMap['ChatApi.getSkillHistory']?.[localVarOperationServerIndex]?.url;
|
|
4110
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4111
|
+
},
|
|
3988
4112
|
/**
|
|
3989
4113
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
3990
4114
|
* @summary List chat threads for an agent
|
|
@@ -4029,7 +4153,7 @@ export const ChatApiFp = function(configuration?: Configuration) {
|
|
|
4029
4153
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4030
4154
|
},
|
|
4031
4155
|
/**
|
|
4032
|
-
* Send a new message to a specific chat thread.
|
|
4156
|
+
* 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.
|
|
4033
4157
|
* @summary Send a message to a chat thread
|
|
4034
4158
|
* @param {string} aid Agent ID
|
|
4035
4159
|
* @param {string} chatId Chat ID
|
|
@@ -4110,6 +4234,16 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4110
4234
|
getMessageById(messageId: string, options?: RawAxiosRequestConfig): AxiosPromise<ChatMessage> {
|
|
4111
4235
|
return localVarFp.getMessageById(messageId, options).then((request) => request(axios, basePath));
|
|
4112
4236
|
},
|
|
4237
|
+
/**
|
|
4238
|
+
* 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
|
|
4239
|
+
* @summary Skill History
|
|
4240
|
+
* @param {string} aid Agent ID
|
|
4241
|
+
* @param {*} [options] Override http request option.
|
|
4242
|
+
* @throws {RequiredError}
|
|
4243
|
+
*/
|
|
4244
|
+
getSkillHistory(aid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessageSkillCall>> {
|
|
4245
|
+
return localVarFp.getSkillHistory(aid, options).then((request) => request(axios, basePath));
|
|
4246
|
+
},
|
|
4113
4247
|
/**
|
|
4114
4248
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
4115
4249
|
* @summary List chat threads for an agent
|
|
@@ -4145,7 +4279,7 @@ export const ChatApiFactory = function (configuration?: Configuration, basePath?
|
|
|
4145
4279
|
return localVarFp.retryMessageInChat(aid, chatId, options).then((request) => request(axios, basePath));
|
|
4146
4280
|
},
|
|
4147
4281
|
/**
|
|
4148
|
-
* Send a new message to a specific chat thread.
|
|
4282
|
+
* 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.
|
|
4149
4283
|
* @summary Send a message to a chat thread
|
|
4150
4284
|
* @param {string} aid Agent ID
|
|
4151
4285
|
* @param {string} chatId Chat ID
|
|
@@ -4228,6 +4362,18 @@ export class ChatApi extends BaseAPI {
|
|
|
4228
4362
|
return ChatApiFp(this.configuration).getMessageById(messageId, options).then((request) => request(this.axios, this.basePath));
|
|
4229
4363
|
}
|
|
4230
4364
|
|
|
4365
|
+
/**
|
|
4366
|
+
* 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
|
|
4367
|
+
* @summary Skill History
|
|
4368
|
+
* @param {string} aid Agent ID
|
|
4369
|
+
* @param {*} [options] Override http request option.
|
|
4370
|
+
* @throws {RequiredError}
|
|
4371
|
+
* @memberof ChatApi
|
|
4372
|
+
*/
|
|
4373
|
+
public getSkillHistory(aid: string, options?: RawAxiosRequestConfig) {
|
|
4374
|
+
return ChatApiFp(this.configuration).getSkillHistory(aid, options).then((request) => request(this.axios, this.basePath));
|
|
4375
|
+
}
|
|
4376
|
+
|
|
4231
4377
|
/**
|
|
4232
4378
|
* Retrieve all chat threads associated with a specific agent for the current user.
|
|
4233
4379
|
* @summary List chat threads for an agent
|
|
@@ -4269,7 +4415,7 @@ export class ChatApi extends BaseAPI {
|
|
|
4269
4415
|
}
|
|
4270
4416
|
|
|
4271
4417
|
/**
|
|
4272
|
-
* Send a new message to a specific chat thread.
|
|
4418
|
+
* 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.
|
|
4273
4419
|
* @summary Send a message to a chat thread
|
|
4274
4420
|
* @param {string} aid Agent ID
|
|
4275
4421
|
* @param {string} chatId Chat ID
|
|
@@ -5035,7 +5181,7 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
5035
5181
|
* @param {*} [options] Override http request option.
|
|
5036
5182
|
* @throws {RequiredError}
|
|
5037
5183
|
*/
|
|
5038
|
-
|
|
5184
|
+
healthCheck: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5039
5185
|
const localVarPath = `/health`;
|
|
5040
5186
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5041
5187
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5075,10 +5221,10 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
5075
5221
|
* @param {*} [options] Override http request option.
|
|
5076
5222
|
* @throws {RequiredError}
|
|
5077
5223
|
*/
|
|
5078
|
-
async
|
|
5079
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5224
|
+
async healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
|
|
5225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.healthCheck(options);
|
|
5080
5226
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5081
|
-
const localVarOperationServerBasePath = operationServerMap['HealthApi.
|
|
5227
|
+
const localVarOperationServerBasePath = operationServerMap['HealthApi.healthCheck']?.[localVarOperationServerIndex]?.url;
|
|
5082
5228
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5083
5229
|
},
|
|
5084
5230
|
}
|
|
@@ -5097,8 +5243,8 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
5097
5243
|
* @param {*} [options] Override http request option.
|
|
5098
5244
|
* @throws {RequiredError}
|
|
5099
5245
|
*/
|
|
5100
|
-
|
|
5101
|
-
return localVarFp.
|
|
5246
|
+
healthCheck(options?: RawAxiosRequestConfig): AxiosPromise<any> {
|
|
5247
|
+
return localVarFp.healthCheck(options).then((request) => request(axios, basePath));
|
|
5102
5248
|
},
|
|
5103
5249
|
};
|
|
5104
5250
|
};
|
|
@@ -5117,8 +5263,8 @@ export class HealthApi extends BaseAPI {
|
|
|
5117
5263
|
* @throws {RequiredError}
|
|
5118
5264
|
* @memberof HealthApi
|
|
5119
5265
|
*/
|
|
5120
|
-
public
|
|
5121
|
-
return HealthApiFp(this.configuration).
|
|
5266
|
+
public healthCheck(options?: RawAxiosRequestConfig) {
|
|
5267
|
+
return HealthApiFp(this.configuration).healthCheck(options).then((request) => request(this.axios, this.basePath));
|
|
5122
5268
|
}
|
|
5123
5269
|
}
|
|
5124
5270
|
|
|
@@ -5166,7 +5312,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5166
5312
|
* @param {*} [options] Override http request option.
|
|
5167
5313
|
* @throws {RequiredError}
|
|
5168
5314
|
*/
|
|
5169
|
-
|
|
5315
|
+
getLlms: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5170
5316
|
const localVarPath = `/metadata/llms`;
|
|
5171
5317
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5172
5318
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5272,7 +5418,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
5272
5418
|
* @param {*} [options] Override http request option.
|
|
5273
5419
|
* @throws {RequiredError}
|
|
5274
5420
|
*/
|
|
5275
|
-
|
|
5421
|
+
getSkills: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5276
5422
|
const localVarPath = `/metadata/skills`;
|
|
5277
5423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5278
5424
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5324,10 +5470,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
5324
5470
|
* @param {*} [options] Override http request option.
|
|
5325
5471
|
* @throws {RequiredError}
|
|
5326
5472
|
*/
|
|
5327
|
-
async
|
|
5328
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5473
|
+
async getLlms(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LLMModelInfoWithProviderName>>> {
|
|
5474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLlms(options);
|
|
5329
5475
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5330
|
-
const localVarOperationServerBasePath = operationServerMap['MetadataApi.
|
|
5476
|
+
const localVarOperationServerBasePath = operationServerMap['MetadataApi.getLlms']?.[localVarOperationServerIndex]?.url;
|
|
5331
5477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5332
5478
|
},
|
|
5333
5479
|
/**
|
|
@@ -5364,10 +5510,10 @@ export const MetadataApiFp = function(configuration?: Configuration) {
|
|
|
5364
5510
|
* @param {*} [options] Override http request option.
|
|
5365
5511
|
* @throws {RequiredError}
|
|
5366
5512
|
*/
|
|
5367
|
-
async
|
|
5368
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
5513
|
+
async getSkills(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Skill>>> {
|
|
5514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSkills(options);
|
|
5369
5515
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5370
|
-
const localVarOperationServerBasePath = operationServerMap['MetadataApi.
|
|
5516
|
+
const localVarOperationServerBasePath = operationServerMap['MetadataApi.getSkills']?.[localVarOperationServerIndex]?.url;
|
|
5371
5517
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5372
5518
|
},
|
|
5373
5519
|
}
|
|
@@ -5395,8 +5541,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
5395
5541
|
* @param {*} [options] Override http request option.
|
|
5396
5542
|
* @throws {RequiredError}
|
|
5397
5543
|
*/
|
|
5398
|
-
|
|
5399
|
-
return localVarFp.
|
|
5544
|
+
getLlms(options?: RawAxiosRequestConfig): AxiosPromise<Array<LLMModelInfoWithProviderName>> {
|
|
5545
|
+
return localVarFp.getLlms(options).then((request) => request(axios, basePath));
|
|
5400
5546
|
},
|
|
5401
5547
|
/**
|
|
5402
5548
|
* Get the icon for a specific skill
|
|
@@ -5426,8 +5572,8 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP
|
|
|
5426
5572
|
* @param {*} [options] Override http request option.
|
|
5427
5573
|
* @throws {RequiredError}
|
|
5428
5574
|
*/
|
|
5429
|
-
|
|
5430
|
-
return localVarFp.
|
|
5575
|
+
getSkills(options?: RawAxiosRequestConfig): AxiosPromise<Array<Skill>> {
|
|
5576
|
+
return localVarFp.getSkills(options).then((request) => request(axios, basePath));
|
|
5431
5577
|
},
|
|
5432
5578
|
};
|
|
5433
5579
|
};
|
|
@@ -5457,8 +5603,8 @@ export class MetadataApi extends BaseAPI {
|
|
|
5457
5603
|
* @throws {RequiredError}
|
|
5458
5604
|
* @memberof MetadataApi
|
|
5459
5605
|
*/
|
|
5460
|
-
public
|
|
5461
|
-
return MetadataApiFp(this.configuration).
|
|
5606
|
+
public getLlms(options?: RawAxiosRequestConfig) {
|
|
5607
|
+
return MetadataApiFp(this.configuration).getLlms(options).then((request) => request(this.axios, this.basePath));
|
|
5462
5608
|
}
|
|
5463
5609
|
|
|
5464
5610
|
/**
|
|
@@ -5494,8 +5640,8 @@ export class MetadataApi extends BaseAPI {
|
|
|
5494
5640
|
* @throws {RequiredError}
|
|
5495
5641
|
* @memberof MetadataApi
|
|
5496
5642
|
*/
|
|
5497
|
-
public
|
|
5498
|
-
return MetadataApiFp(this.configuration).
|
|
5643
|
+
public getSkills(options?: RawAxiosRequestConfig) {
|
|
5644
|
+
return MetadataApiFp(this.configuration).getSkills(options).then((request) => request(this.axios, this.basePath));
|
|
5499
5645
|
}
|
|
5500
5646
|
}
|
|
5501
5647
|
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED