@crestal/nation-sdk 0.8.25 → 0.8.27
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/.openapi-generator/FILES +2 -0
- package/README.md +4 -2
- package/api.ts +132 -7
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +74 -7
- package/dist/api.js +139 -2
- 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/Agent.md +1 -1
- package/docs/AgentCreate.md +1 -1
- package/docs/AgentDraft.md +1 -1
- package/docs/AgentResponse.md +1 -1
- package/docs/AgentUpdate.md +1 -1
- package/docs/AgentUserInput.md +1 -1
- package/docs/LLMModelInfoWithProviderNameInput.md +2 -2
- package/docs/LLMModelInfoWithProviderNameOutput.md +2 -2
- package/docs/ManagerApi.md +64 -0
- package/docs/ManagerMessageRequest.md +25 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @crestal/nation-sdk@0.8.
|
|
1
|
+
## @crestal/nation-sdk@0.8.27
|
|
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.8.
|
|
39
|
+
npm install @crestal/nation-sdk@0.8.27 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -99,6 +99,7 @@ Class | Method | HTTP request | Description
|
|
|
99
99
|
*GeneratorApi* | [**getGenerationHistory**](docs/GeneratorApi.md#getgenerationhistory) | **GET** /generator/agent/generations/{project_id} | Get Generation Detail by Project ID
|
|
100
100
|
*GeneratorApi* | [**getGenerations**](docs/GeneratorApi.md#getgenerations) | **GET** /generator/agent/generations | Get Generations List by User
|
|
101
101
|
*HealthApi* | [**healthCheck**](docs/HealthApi.md#healthcheck) | **GET** /health | Health check endpoint
|
|
102
|
+
*ManagerApi* | [**sendMessageToManager**](docs/ManagerApi.md#sendmessagetomanager) | **POST** /agents/{aid}/manager/messages | Send a message to an agent\'s manager agent
|
|
102
103
|
*MetadataApi* | [**getAgentPublicSchema**](docs/MetadataApi.md#getagentpublicschema) | **GET** /metadata/agent/public.json | Get public agent schema
|
|
103
104
|
*MetadataApi* | [**getAgentPublicStrictSchema**](docs/MetadataApi.md#getagentpublicstrictschema) | **GET** /metadata/agent/public-strict.json | Get strict public agent schema
|
|
104
105
|
*MetadataApi* | [**getAgentSchema**](docs/MetadataApi.md#getagentschema) | **GET** /metadata/agent/schema.json | Get agent schema
|
|
@@ -197,6 +198,7 @@ Class | Method | HTTP request | Description
|
|
|
197
198
|
- [LLMModelInfoWithProviderNameInput](docs/LLMModelInfoWithProviderNameInput.md)
|
|
198
199
|
- [LLMModelInfoWithProviderNameOutput](docs/LLMModelInfoWithProviderNameOutput.md)
|
|
199
200
|
- [LLMProvider](docs/LLMProvider.md)
|
|
201
|
+
- [ManagerMessageRequest](docs/ManagerMessageRequest.md)
|
|
200
202
|
- [OutputPrice](docs/OutputPrice.md)
|
|
201
203
|
- [OwnerType](docs/OwnerType.md)
|
|
202
204
|
- [PermanentAmount](docs/PermanentAmount.md)
|
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.8.
|
|
7
|
+
* The version of the OpenAPI document: 0.8.27
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,7 +42,7 @@ export interface Agent {
|
|
|
42
42
|
'personality'?: string | null;
|
|
43
43
|
'principles'?: string | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* LLM of the agent
|
|
46
46
|
*/
|
|
47
47
|
'model'?: string;
|
|
48
48
|
'prompt'?: string | null;
|
|
@@ -193,7 +193,7 @@ export interface AgentCreate {
|
|
|
193
193
|
'personality'?: string | null;
|
|
194
194
|
'principles'?: string | null;
|
|
195
195
|
/**
|
|
196
|
-
*
|
|
196
|
+
* LLM of the agent
|
|
197
197
|
*/
|
|
198
198
|
'model'?: string;
|
|
199
199
|
'prompt'?: string | null;
|
|
@@ -273,7 +273,7 @@ export interface AgentDraft {
|
|
|
273
273
|
'personality'?: string | null;
|
|
274
274
|
'principles'?: string | null;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* LLM of the agent
|
|
277
277
|
*/
|
|
278
278
|
'model'?: string;
|
|
279
279
|
'prompt'?: string | null;
|
|
@@ -466,7 +466,7 @@ export interface AgentResponse {
|
|
|
466
466
|
'name': string | null;
|
|
467
467
|
'picture'?: string | null;
|
|
468
468
|
/**
|
|
469
|
-
*
|
|
469
|
+
* LLM of the agent
|
|
470
470
|
*/
|
|
471
471
|
'model'?: string;
|
|
472
472
|
'presence_penalty'?: number | null;
|
|
@@ -663,7 +663,7 @@ export interface AgentUpdate {
|
|
|
663
663
|
'personality'?: string | null;
|
|
664
664
|
'principles'?: string | null;
|
|
665
665
|
/**
|
|
666
|
-
*
|
|
666
|
+
* LLM of the agent
|
|
667
667
|
*/
|
|
668
668
|
'model'?: string;
|
|
669
669
|
'prompt'?: string | null;
|
|
@@ -724,7 +724,7 @@ export interface AgentUserInput {
|
|
|
724
724
|
'personality'?: string | null;
|
|
725
725
|
'principles'?: string | null;
|
|
726
726
|
/**
|
|
727
|
-
*
|
|
727
|
+
* LLM of the agent
|
|
728
728
|
*/
|
|
729
729
|
'model'?: string;
|
|
730
730
|
'prompt'?: string | null;
|
|
@@ -1839,6 +1839,17 @@ export const LLMProvider = {
|
|
|
1839
1839
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1840
1840
|
|
|
1841
1841
|
|
|
1842
|
+
/**
|
|
1843
|
+
* Request payload for manager agent messages.
|
|
1844
|
+
*/
|
|
1845
|
+
export interface ManagerMessageRequest {
|
|
1846
|
+
/**
|
|
1847
|
+
* Content of the message
|
|
1848
|
+
*/
|
|
1849
|
+
'message': string;
|
|
1850
|
+
'stream'?: boolean | null;
|
|
1851
|
+
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1852
|
+
}
|
|
1842
1853
|
export interface OutputPrice {
|
|
1843
1854
|
}
|
|
1844
1855
|
/**
|
|
@@ -6135,6 +6146,120 @@ export class HealthApi extends BaseAPI {
|
|
|
6135
6146
|
|
|
6136
6147
|
|
|
6137
6148
|
|
|
6149
|
+
/**
|
|
6150
|
+
* ManagerApi - axios parameter creator
|
|
6151
|
+
*/
|
|
6152
|
+
export const ManagerApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6153
|
+
return {
|
|
6154
|
+
/**
|
|
6155
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
6156
|
+
* @summary Send a message to an agent\'s manager agent
|
|
6157
|
+
* @param {string} aid Agent ID
|
|
6158
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
6159
|
+
* @param {*} [options] Override http request option.
|
|
6160
|
+
* @throws {RequiredError}
|
|
6161
|
+
*/
|
|
6162
|
+
sendMessageToManager: async (aid: string, managerMessageRequest: ManagerMessageRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6163
|
+
// verify required parameter 'aid' is not null or undefined
|
|
6164
|
+
assertParamExists('sendMessageToManager', 'aid', aid)
|
|
6165
|
+
// verify required parameter 'managerMessageRequest' is not null or undefined
|
|
6166
|
+
assertParamExists('sendMessageToManager', 'managerMessageRequest', managerMessageRequest)
|
|
6167
|
+
const localVarPath = `/agents/{aid}/manager/messages`
|
|
6168
|
+
.replace(`{${"aid"}}`, encodeURIComponent(String(aid)));
|
|
6169
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6170
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6171
|
+
let baseOptions;
|
|
6172
|
+
if (configuration) {
|
|
6173
|
+
baseOptions = configuration.baseOptions;
|
|
6174
|
+
}
|
|
6175
|
+
|
|
6176
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6177
|
+
const localVarHeaderParameter = {} as any;
|
|
6178
|
+
const localVarQueryParameter = {} as any;
|
|
6179
|
+
|
|
6180
|
+
// authentication HTTPBearer required
|
|
6181
|
+
// http bearer authentication required
|
|
6182
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
6183
|
+
|
|
6184
|
+
|
|
6185
|
+
|
|
6186
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6187
|
+
|
|
6188
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6189
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6190
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6191
|
+
localVarRequestOptions.data = serializeDataIfNeeded(managerMessageRequest, localVarRequestOptions, configuration)
|
|
6192
|
+
|
|
6193
|
+
return {
|
|
6194
|
+
url: toPathString(localVarUrlObj),
|
|
6195
|
+
options: localVarRequestOptions,
|
|
6196
|
+
};
|
|
6197
|
+
},
|
|
6198
|
+
}
|
|
6199
|
+
};
|
|
6200
|
+
|
|
6201
|
+
/**
|
|
6202
|
+
* ManagerApi - functional programming interface
|
|
6203
|
+
*/
|
|
6204
|
+
export const ManagerApiFp = function(configuration?: Configuration) {
|
|
6205
|
+
const localVarAxiosParamCreator = ManagerApiAxiosParamCreator(configuration)
|
|
6206
|
+
return {
|
|
6207
|
+
/**
|
|
6208
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
6209
|
+
* @summary Send a message to an agent\'s manager agent
|
|
6210
|
+
* @param {string} aid Agent ID
|
|
6211
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
6212
|
+
* @param {*} [options] Override http request option.
|
|
6213
|
+
* @throws {RequiredError}
|
|
6214
|
+
*/
|
|
6215
|
+
async sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>> {
|
|
6216
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessageToManager(aid, managerMessageRequest, options);
|
|
6217
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
6218
|
+
const localVarOperationServerBasePath = operationServerMap['ManagerApi.sendMessageToManager']?.[localVarOperationServerIndex]?.url;
|
|
6219
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6220
|
+
},
|
|
6221
|
+
}
|
|
6222
|
+
};
|
|
6223
|
+
|
|
6224
|
+
/**
|
|
6225
|
+
* ManagerApi - factory interface
|
|
6226
|
+
*/
|
|
6227
|
+
export const ManagerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6228
|
+
const localVarFp = ManagerApiFp(configuration)
|
|
6229
|
+
return {
|
|
6230
|
+
/**
|
|
6231
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
6232
|
+
* @summary Send a message to an agent\'s manager agent
|
|
6233
|
+
* @param {string} aid Agent ID
|
|
6234
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
6235
|
+
* @param {*} [options] Override http request option.
|
|
6236
|
+
* @throws {RequiredError}
|
|
6237
|
+
*/
|
|
6238
|
+
sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>> {
|
|
6239
|
+
return localVarFp.sendMessageToManager(aid, managerMessageRequest, options).then((request) => request(axios, basePath));
|
|
6240
|
+
},
|
|
6241
|
+
};
|
|
6242
|
+
};
|
|
6243
|
+
|
|
6244
|
+
/**
|
|
6245
|
+
* ManagerApi - object-oriented interface
|
|
6246
|
+
*/
|
|
6247
|
+
export class ManagerApi extends BaseAPI {
|
|
6248
|
+
/**
|
|
6249
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
6250
|
+
* @summary Send a message to an agent\'s manager agent
|
|
6251
|
+
* @param {string} aid Agent ID
|
|
6252
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
6253
|
+
* @param {*} [options] Override http request option.
|
|
6254
|
+
* @throws {RequiredError}
|
|
6255
|
+
*/
|
|
6256
|
+
public sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig) {
|
|
6257
|
+
return ManagerApiFp(this.configuration).sendMessageToManager(aid, managerMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6258
|
+
}
|
|
6259
|
+
}
|
|
6260
|
+
|
|
6261
|
+
|
|
6262
|
+
|
|
6138
6263
|
/**
|
|
6139
6264
|
* MetadataApi - axios parameter creator
|
|
6140
6265
|
*/
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.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.8.
|
|
5
|
+
* The version of the OpenAPI document: 0.8.27
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ export interface Agent {
|
|
|
34
34
|
'personality'?: string | null;
|
|
35
35
|
'principles'?: string | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* LLM of the agent
|
|
38
38
|
*/
|
|
39
39
|
'model'?: string;
|
|
40
40
|
'prompt'?: string | null;
|
|
@@ -192,7 +192,7 @@ export interface AgentCreate {
|
|
|
192
192
|
'personality'?: string | null;
|
|
193
193
|
'principles'?: string | null;
|
|
194
194
|
/**
|
|
195
|
-
*
|
|
195
|
+
* LLM of the agent
|
|
196
196
|
*/
|
|
197
197
|
'model'?: string;
|
|
198
198
|
'prompt'?: string | null;
|
|
@@ -273,7 +273,7 @@ export interface AgentDraft {
|
|
|
273
273
|
'personality'?: string | null;
|
|
274
274
|
'principles'?: string | null;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
276
|
+
* LLM of the agent
|
|
277
277
|
*/
|
|
278
278
|
'model'?: string;
|
|
279
279
|
'prompt'?: string | null;
|
|
@@ -475,7 +475,7 @@ export interface AgentResponse {
|
|
|
475
475
|
'name': string | null;
|
|
476
476
|
'picture'?: string | null;
|
|
477
477
|
/**
|
|
478
|
-
*
|
|
478
|
+
* LLM of the agent
|
|
479
479
|
*/
|
|
480
480
|
'model'?: string;
|
|
481
481
|
'presence_penalty'?: number | null;
|
|
@@ -669,7 +669,7 @@ export interface AgentUpdate {
|
|
|
669
669
|
'personality'?: string | null;
|
|
670
670
|
'principles'?: string | null;
|
|
671
671
|
/**
|
|
672
|
-
*
|
|
672
|
+
* LLM of the agent
|
|
673
673
|
*/
|
|
674
674
|
'model'?: string;
|
|
675
675
|
'prompt'?: string | null;
|
|
@@ -731,7 +731,7 @@ export interface AgentUserInput {
|
|
|
731
731
|
'personality'?: string | null;
|
|
732
732
|
'principles'?: string | null;
|
|
733
733
|
/**
|
|
734
|
-
*
|
|
734
|
+
* LLM of the agent
|
|
735
735
|
*/
|
|
736
736
|
'model'?: string;
|
|
737
737
|
'prompt'?: string | null;
|
|
@@ -1807,6 +1807,17 @@ export declare const LLMProvider: {
|
|
|
1807
1807
|
readonly Venice: "venice";
|
|
1808
1808
|
};
|
|
1809
1809
|
export type LLMProvider = typeof LLMProvider[keyof typeof LLMProvider];
|
|
1810
|
+
/**
|
|
1811
|
+
* Request payload for manager agent messages.
|
|
1812
|
+
*/
|
|
1813
|
+
export interface ManagerMessageRequest {
|
|
1814
|
+
/**
|
|
1815
|
+
* Content of the message
|
|
1816
|
+
*/
|
|
1817
|
+
'message': string;
|
|
1818
|
+
'stream'?: boolean | null;
|
|
1819
|
+
'attachments'?: Array<ChatMessageAttachment> | null;
|
|
1820
|
+
}
|
|
1810
1821
|
export interface OutputPrice {
|
|
1811
1822
|
}
|
|
1812
1823
|
/**
|
|
@@ -3947,6 +3958,62 @@ export declare class HealthApi extends BaseAPI {
|
|
|
3947
3958
|
*/
|
|
3948
3959
|
healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
3949
3960
|
}
|
|
3961
|
+
/**
|
|
3962
|
+
* ManagerApi - axios parameter creator
|
|
3963
|
+
*/
|
|
3964
|
+
export declare const ManagerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3965
|
+
/**
|
|
3966
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3967
|
+
* @summary Send a message to an agent\'s manager agent
|
|
3968
|
+
* @param {string} aid Agent ID
|
|
3969
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
3970
|
+
* @param {*} [options] Override http request option.
|
|
3971
|
+
* @throws {RequiredError}
|
|
3972
|
+
*/
|
|
3973
|
+
sendMessageToManager: (aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3974
|
+
};
|
|
3975
|
+
/**
|
|
3976
|
+
* ManagerApi - functional programming interface
|
|
3977
|
+
*/
|
|
3978
|
+
export declare const ManagerApiFp: (configuration?: Configuration) => {
|
|
3979
|
+
/**
|
|
3980
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3981
|
+
* @summary Send a message to an agent\'s manager agent
|
|
3982
|
+
* @param {string} aid Agent ID
|
|
3983
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
3984
|
+
* @param {*} [options] Override http request option.
|
|
3985
|
+
* @throws {RequiredError}
|
|
3986
|
+
*/
|
|
3987
|
+
sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ChatMessage>>>;
|
|
3988
|
+
};
|
|
3989
|
+
/**
|
|
3990
|
+
* ManagerApi - factory interface
|
|
3991
|
+
*/
|
|
3992
|
+
export declare const ManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3993
|
+
/**
|
|
3994
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
3995
|
+
* @summary Send a message to an agent\'s manager agent
|
|
3996
|
+
* @param {string} aid Agent ID
|
|
3997
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
3998
|
+
* @param {*} [options] Override http request option.
|
|
3999
|
+
* @throws {RequiredError}
|
|
4000
|
+
*/
|
|
4001
|
+
sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ChatMessage>>;
|
|
4002
|
+
};
|
|
4003
|
+
/**
|
|
4004
|
+
* ManagerApi - object-oriented interface
|
|
4005
|
+
*/
|
|
4006
|
+
export declare class ManagerApi extends BaseAPI {
|
|
4007
|
+
/**
|
|
4008
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
4009
|
+
* @summary Send a message to an agent\'s manager agent
|
|
4010
|
+
* @param {string} aid Agent ID
|
|
4011
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
4012
|
+
* @param {*} [options] Override http request option.
|
|
4013
|
+
* @throws {RequiredError}
|
|
4014
|
+
*/
|
|
4015
|
+
sendMessageToManager(aid: string, managerMessageRequest: ManagerMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatMessage[], any, {}>>;
|
|
4016
|
+
}
|
|
3950
4017
|
/**
|
|
3951
4018
|
* MetadataApi - axios parameter creator
|
|
3952
4019
|
*/
|
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.27
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -85,7 +85,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
87
|
exports.GeneratorApiFactory = exports.GeneratorApiFp = exports.GeneratorApiAxiosParamCreator = exports.DraftApi = exports.DraftApiFactory = exports.DraftApiFp = exports.DraftApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.ChatApi = exports.ChatApiFactory = exports.ChatApiFp = exports.ChatApiAxiosParamCreator = exports.AgentApi = exports.AgentApiFactory = exports.AgentApiFp = exports.AgentApiAxiosParamCreator = exports.UpstreamType = exports.TransactionType = exports.SystemMessageType = exports.OwnerType = exports.LLMProvider = exports.EventType = exports.Direction = exports.CreditType = exports.CreditDebit = exports.ChatMessageAttachmentType = exports.AuthorType = exports.AgentUserInputShortTermMemoryStrategyEnum = exports.AgentUserInputNetworkIdEnum = exports.AgentUserInputWalletProviderEnum = exports.AgentUpdateShortTermMemoryStrategyEnum = exports.AgentUpdateNetworkIdEnum = exports.AgentUpdateWalletProviderEnum = exports.AgentState = exports.AgentSortOption = exports.AgentResponseShortTermMemoryStrategyEnum = exports.AgentResponseNetworkIdEnum = exports.AgentResponseWalletProviderEnum = exports.AgentDraftShortTermMemoryStrategyEnum = exports.AgentDraftNetworkIdEnum = exports.AgentDraftWalletProviderEnum = exports.AgentCreateShortTermMemoryStrategyEnum = exports.AgentCreateNetworkIdEnum = exports.AgentCreateWalletProviderEnum = exports.AgentShortTermMemoryStrategyEnum = exports.AgentNetworkIdEnum = exports.AgentWalletProviderEnum = void 0;
|
|
88
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = void 0;
|
|
88
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.MetadataApi = exports.MetadataApiFactory = exports.MetadataApiFp = exports.MetadataApiAxiosParamCreator = exports.ManagerApi = exports.ManagerApiFactory = exports.ManagerApiFp = exports.ManagerApiAxiosParamCreator = exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = exports.GeneratorApi = void 0;
|
|
89
89
|
var axios_1 = require("axios");
|
|
90
90
|
// Some imports not used depending on template conditions
|
|
91
91
|
// @ts-ignore
|
|
@@ -5191,6 +5191,143 @@ var HealthApi = /** @class */ (function (_super) {
|
|
|
5191
5191
|
return HealthApi;
|
|
5192
5192
|
}(base_1.BaseAPI));
|
|
5193
5193
|
exports.HealthApi = HealthApi;
|
|
5194
|
+
/**
|
|
5195
|
+
* ManagerApi - axios parameter creator
|
|
5196
|
+
*/
|
|
5197
|
+
var ManagerApiAxiosParamCreator = function (configuration) {
|
|
5198
|
+
var _this = this;
|
|
5199
|
+
return {
|
|
5200
|
+
/**
|
|
5201
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
5202
|
+
* @summary Send a message to an agent\'s manager agent
|
|
5203
|
+
* @param {string} aid Agent ID
|
|
5204
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
5205
|
+
* @param {*} [options] Override http request option.
|
|
5206
|
+
* @throws {RequiredError}
|
|
5207
|
+
*/
|
|
5208
|
+
sendMessageToManager: function (aid_1, managerMessageRequest_1) {
|
|
5209
|
+
var args_1 = [];
|
|
5210
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
5211
|
+
args_1[_i - 2] = arguments[_i];
|
|
5212
|
+
}
|
|
5213
|
+
return __awaiter(_this, __spreadArray([aid_1, managerMessageRequest_1], args_1, true), void 0, function (aid, managerMessageRequest, options) {
|
|
5214
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5215
|
+
if (options === void 0) { options = {}; }
|
|
5216
|
+
return __generator(this, function (_a) {
|
|
5217
|
+
switch (_a.label) {
|
|
5218
|
+
case 0:
|
|
5219
|
+
// verify required parameter 'aid' is not null or undefined
|
|
5220
|
+
(0, common_1.assertParamExists)('sendMessageToManager', 'aid', aid);
|
|
5221
|
+
// verify required parameter 'managerMessageRequest' is not null or undefined
|
|
5222
|
+
(0, common_1.assertParamExists)('sendMessageToManager', 'managerMessageRequest', managerMessageRequest);
|
|
5223
|
+
localVarPath = "/agents/{aid}/manager/messages"
|
|
5224
|
+
.replace("{".concat("aid", "}"), encodeURIComponent(String(aid)));
|
|
5225
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5226
|
+
if (configuration) {
|
|
5227
|
+
baseOptions = configuration.baseOptions;
|
|
5228
|
+
}
|
|
5229
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
5230
|
+
localVarHeaderParameter = {};
|
|
5231
|
+
localVarQueryParameter = {};
|
|
5232
|
+
// authentication HTTPBearer required
|
|
5233
|
+
// http bearer authentication required
|
|
5234
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
5235
|
+
case 1:
|
|
5236
|
+
// authentication HTTPBearer required
|
|
5237
|
+
// http bearer authentication required
|
|
5238
|
+
_a.sent();
|
|
5239
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5240
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5241
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5242
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5243
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(managerMessageRequest, localVarRequestOptions, configuration);
|
|
5244
|
+
return [2 /*return*/, {
|
|
5245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5246
|
+
options: localVarRequestOptions,
|
|
5247
|
+
}];
|
|
5248
|
+
}
|
|
5249
|
+
});
|
|
5250
|
+
});
|
|
5251
|
+
},
|
|
5252
|
+
};
|
|
5253
|
+
};
|
|
5254
|
+
exports.ManagerApiAxiosParamCreator = ManagerApiAxiosParamCreator;
|
|
5255
|
+
/**
|
|
5256
|
+
* ManagerApi - functional programming interface
|
|
5257
|
+
*/
|
|
5258
|
+
var ManagerApiFp = function (configuration) {
|
|
5259
|
+
var localVarAxiosParamCreator = (0, exports.ManagerApiAxiosParamCreator)(configuration);
|
|
5260
|
+
return {
|
|
5261
|
+
/**
|
|
5262
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
5263
|
+
* @summary Send a message to an agent\'s manager agent
|
|
5264
|
+
* @param {string} aid Agent ID
|
|
5265
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
5266
|
+
* @param {*} [options] Override http request option.
|
|
5267
|
+
* @throws {RequiredError}
|
|
5268
|
+
*/
|
|
5269
|
+
sendMessageToManager: function (aid, managerMessageRequest, options) {
|
|
5270
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5271
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
5272
|
+
var _a, _b, _c;
|
|
5273
|
+
return __generator(this, function (_d) {
|
|
5274
|
+
switch (_d.label) {
|
|
5275
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.sendMessageToManager(aid, managerMessageRequest, options)];
|
|
5276
|
+
case 1:
|
|
5277
|
+
localVarAxiosArgs = _d.sent();
|
|
5278
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5279
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ManagerApi.sendMessageToManager']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5280
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
5281
|
+
}
|
|
5282
|
+
});
|
|
5283
|
+
});
|
|
5284
|
+
},
|
|
5285
|
+
};
|
|
5286
|
+
};
|
|
5287
|
+
exports.ManagerApiFp = ManagerApiFp;
|
|
5288
|
+
/**
|
|
5289
|
+
* ManagerApi - factory interface
|
|
5290
|
+
*/
|
|
5291
|
+
var ManagerApiFactory = function (configuration, basePath, axios) {
|
|
5292
|
+
var localVarFp = (0, exports.ManagerApiFp)(configuration);
|
|
5293
|
+
return {
|
|
5294
|
+
/**
|
|
5295
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
5296
|
+
* @summary Send a message to an agent\'s manager agent
|
|
5297
|
+
* @param {string} aid Agent ID
|
|
5298
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
5299
|
+
* @param {*} [options] Override http request option.
|
|
5300
|
+
* @throws {RequiredError}
|
|
5301
|
+
*/
|
|
5302
|
+
sendMessageToManager: function (aid, managerMessageRequest, options) {
|
|
5303
|
+
return localVarFp.sendMessageToManager(aid, managerMessageRequest, options).then(function (request) { return request(axios, basePath); });
|
|
5304
|
+
},
|
|
5305
|
+
};
|
|
5306
|
+
};
|
|
5307
|
+
exports.ManagerApiFactory = ManagerApiFactory;
|
|
5308
|
+
/**
|
|
5309
|
+
* ManagerApi - object-oriented interface
|
|
5310
|
+
*/
|
|
5311
|
+
var ManagerApi = /** @class */ (function (_super) {
|
|
5312
|
+
__extends(ManagerApi, _super);
|
|
5313
|
+
function ManagerApi() {
|
|
5314
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
5315
|
+
}
|
|
5316
|
+
/**
|
|
5317
|
+
* Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
5318
|
+
* @summary Send a message to an agent\'s manager agent
|
|
5319
|
+
* @param {string} aid Agent ID
|
|
5320
|
+
* @param {ManagerMessageRequest} managerMessageRequest
|
|
5321
|
+
* @param {*} [options] Override http request option.
|
|
5322
|
+
* @throws {RequiredError}
|
|
5323
|
+
*/
|
|
5324
|
+
ManagerApi.prototype.sendMessageToManager = function (aid, managerMessageRequest, options) {
|
|
5325
|
+
var _this = this;
|
|
5326
|
+
return (0, exports.ManagerApiFp)(this.configuration).sendMessageToManager(aid, managerMessageRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5327
|
+
};
|
|
5328
|
+
return ManagerApi;
|
|
5329
|
+
}(base_1.BaseAPI));
|
|
5330
|
+
exports.ManagerApi = ManagerApi;
|
|
5194
5331
|
/**
|
|
5195
5332
|
* MetadataApi - axios parameter creator
|
|
5196
5333
|
*/
|
package/dist/base.d.ts
CHANGED
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.27
|
|
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
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.27
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.27
|
|
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
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.8.
|
|
8
|
+
* The version of the OpenAPI document: 0.8.27
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/docs/Agent.md
CHANGED
|
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**personality** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**principles** | **string** | | [optional] [default to undefined]
|
|
23
|
-
**model** | **string** |
|
|
23
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
24
24
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
25
25
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
26
26
|
**temperature** | **number** | | [optional] [default to undefined]
|
package/docs/AgentCreate.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**personality** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**principles** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**model** | **string** |
|
|
14
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
15
15
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**temperature** | **number** | | [optional] [default to undefined]
|
package/docs/AgentDraft.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**personality** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**principles** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**model** | **string** |
|
|
14
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
15
15
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**temperature** | **number** | | [optional] [default to undefined]
|
package/docs/AgentResponse.md
CHANGED
|
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**public_extra** | **{ [key: string]: any; }** | | [optional] [default to undefined]
|
|
18
18
|
**name** | **string** | | [default to undefined]
|
|
19
19
|
**picture** | **string** | | [optional] [default to undefined]
|
|
20
|
-
**model** | **string** |
|
|
20
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
21
21
|
**presence_penalty** | **number** | | [optional] [default to undefined]
|
|
22
22
|
**wallet_provider** | **string** | | [optional] [default to undefined]
|
|
23
23
|
**readonly_wallet_address** | **string** | | [optional] [default to undefined]
|
package/docs/AgentUpdate.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**personality** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**principles** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**model** | **string** |
|
|
14
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
15
15
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**temperature** | **number** | | [optional] [default to undefined]
|
package/docs/AgentUserInput.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**purpose** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**personality** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**principles** | **string** | | [optional] [default to undefined]
|
|
14
|
-
**model** | **string** |
|
|
14
|
+
**model** | **string** | LLM of the agent | [optional] [default to 'gpt-5-mini']
|
|
15
15
|
**prompt** | **string** | | [optional] [default to undefined]
|
|
16
16
|
**prompt_append** | **string** | | [optional] [default to undefined]
|
|
17
17
|
**temperature** | **number** | | [optional] [default to undefined]
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-24T14:30:11.811+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-24T14:30:11.811+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
|
|
|
27
27
|
**supports_presence_penalty** | **boolean** | | [optional] [default to true]
|
|
28
28
|
**api_base** | **string** | | [optional] [default to undefined]
|
|
29
29
|
**timeout** | **number** | | [optional] [default to 180]
|
|
30
|
-
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-
|
|
31
|
-
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-
|
|
30
|
+
**created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-10-24T14:30:11.811+00:00]
|
|
31
|
+
**updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-10-24T14:30:11.811+00:00]
|
|
32
32
|
**provider_name** | **string** | | [default to undefined]
|
|
33
33
|
|
|
34
34
|
## Example
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# ManagerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**sendMessageToManager**](#sendmessagetomanager) | **POST** /agents/{aid}/manager/messages | Send a message to an agent\'s manager agent|
|
|
8
|
+
|
|
9
|
+
# **sendMessageToManager**
|
|
10
|
+
> Array<ChatMessage> sendMessageToManager(managerMessageRequest)
|
|
11
|
+
|
|
12
|
+
Send a message to the manager agent assigned to an agent. The manager can review drafts, create new drafts, and report changes. When streaming is requested, the response is returned as Server-Sent Events with event type \'message\'.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ManagerApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
ManagerMessageRequest
|
|
21
|
+
} from '@crestal/nation-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ManagerApi(configuration);
|
|
25
|
+
|
|
26
|
+
let aid: string; //Agent ID (default to undefined)
|
|
27
|
+
let managerMessageRequest: ManagerMessageRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.sendMessageToManager(
|
|
30
|
+
aid,
|
|
31
|
+
managerMessageRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **managerMessageRequest** | **ManagerMessageRequest**| | |
|
|
40
|
+
| **aid** | [**string**] | Agent ID | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**Array<ChatMessage>**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[HTTPBearer](../README.md#HTTPBearer)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Successful Response | - |
|
|
61
|
+
|**422** | Validation Error | - |
|
|
62
|
+
|
|
63
|
+
[[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)
|
|
64
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ManagerMessageRequest
|
|
2
|
+
|
|
3
|
+
Request payload for manager agent messages.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**message** | **string** | Content of the message | [default to undefined]
|
|
10
|
+
**stream** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**attachments** | [**Array<ChatMessageAttachment>**](ChatMessageAttachment.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ManagerMessageRequest } from '@crestal/nation-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ManagerMessageRequest = {
|
|
19
|
+
message,
|
|
20
|
+
stream,
|
|
21
|
+
attachments,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/index.ts
CHANGED