@wildix/wim-wilma-client 0.0.10 → 0.0.12
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-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateAgentCommand.d.ts +24 -18
- package/dist-types/commands/GetAgentCommand.d.ts +12 -9
- package/dist-types/commands/ListAgentsCommand.d.ts +12 -9
- package/dist-types/commands/UpdateAgentCommand.d.ts +24 -18
- package/dist-types/models/models_0.d.ts +21 -18
- package/dist-types/runtimeConfig.browser.d.ts +6 -1
- package/dist-types/runtimeConfig.d.ts +6 -1
- package/dist-types/runtimeConfig.native.d.ts +6 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ const se_CreateAgentCommand = async (input, context) => {
|
|
|
20
20
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
21
|
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
22
22
|
'category': [],
|
|
23
|
+
'guidelines': _ => (0, smithy_client_1._json)(_),
|
|
23
24
|
'instructions': [],
|
|
24
25
|
'model': [],
|
|
25
26
|
'name': [],
|
|
@@ -486,6 +487,7 @@ const se_UpdateAgentCommand = async (input, context) => {
|
|
|
486
487
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
487
488
|
'capabilities': _ => (0, smithy_client_1._json)(_),
|
|
488
489
|
'category': [],
|
|
490
|
+
'guidelines': _ => (0, smithy_client_1._json)(_),
|
|
489
491
|
'instructions': [],
|
|
490
492
|
'model': [],
|
|
491
493
|
'name': [],
|
|
@@ -16,6 +16,7 @@ export const se_CreateAgentCommand = async (input, context) => {
|
|
|
16
16
|
body = JSON.stringify(take(input, {
|
|
17
17
|
'capabilities': _ => _json(_),
|
|
18
18
|
'category': [],
|
|
19
|
+
'guidelines': _ => _json(_),
|
|
19
20
|
'instructions': [],
|
|
20
21
|
'model': [],
|
|
21
22
|
'name': [],
|
|
@@ -457,6 +458,7 @@ export const se_UpdateAgentCommand = async (input, context) => {
|
|
|
457
458
|
body = JSON.stringify(take(input, {
|
|
458
459
|
'capabilities': _ => _json(_),
|
|
459
460
|
'category': [],
|
|
461
|
+
'guidelines': _ => _json(_),
|
|
460
462
|
'instructions': [],
|
|
461
463
|
'model': [],
|
|
462
464
|
'name': [],
|
|
@@ -36,9 +36,18 @@ declare const CreateAgentCommand_base: {
|
|
|
36
36
|
* const client = new WilmaClient(config);
|
|
37
37
|
* const input = { // CreateAgentInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
-
* model: "STRING_VALUE",
|
|
40
|
-
* instructions: "STRING_VALUE", // required
|
|
41
39
|
* category: "STRING_VALUE",
|
|
40
|
+
* instructions: "STRING_VALUE", // required
|
|
41
|
+
* guidelines: [ // AgentGuidelinesList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* variables: [ // AgentVariablesList
|
|
45
|
+
* { // AgentVariable
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
48
|
+
* optional: true || false, // required
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
42
51
|
* capabilities: [ // AgentCapabilitiesList
|
|
43
52
|
* { // AgentCapability Union: only one key present
|
|
44
53
|
* tool: { // AgentTool
|
|
@@ -64,13 +73,7 @@ declare const CreateAgentCommand_base: {
|
|
|
64
73
|
* },
|
|
65
74
|
* },
|
|
66
75
|
* ],
|
|
67
|
-
*
|
|
68
|
-
* { // AgentVariable
|
|
69
|
-
* name: "STRING_VALUE", // required
|
|
70
|
-
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
71
|
-
* optional: true || false, // required
|
|
72
|
-
* },
|
|
73
|
-
* ],
|
|
76
|
+
* model: "STRING_VALUE",
|
|
74
77
|
* company: "STRING_VALUE",
|
|
75
78
|
* };
|
|
76
79
|
* const command = new CreateAgentCommand(input);
|
|
@@ -78,9 +81,18 @@ declare const CreateAgentCommand_base: {
|
|
|
78
81
|
* // { // CreateAgentOutput
|
|
79
82
|
* // agent: { // Agent
|
|
80
83
|
* // name: "STRING_VALUE", // required
|
|
81
|
-
* // model: "STRING_VALUE",
|
|
82
|
-
* // instructions: "STRING_VALUE", // required
|
|
83
84
|
* // category: "STRING_VALUE",
|
|
85
|
+
* // instructions: "STRING_VALUE", // required
|
|
86
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
87
|
+
* // "STRING_VALUE",
|
|
88
|
+
* // ],
|
|
89
|
+
* // variables: [ // AgentVariablesList
|
|
90
|
+
* // { // AgentVariable
|
|
91
|
+
* // name: "STRING_VALUE", // required
|
|
92
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
93
|
+
* // optional: true || false, // required
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
84
96
|
* // capabilities: [ // AgentCapabilitiesList
|
|
85
97
|
* // { // AgentCapability Union: only one key present
|
|
86
98
|
* // tool: { // AgentTool
|
|
@@ -106,13 +118,7 @@ declare const CreateAgentCommand_base: {
|
|
|
106
118
|
* // },
|
|
107
119
|
* // },
|
|
108
120
|
* // ],
|
|
109
|
-
* //
|
|
110
|
-
* // { // AgentVariable
|
|
111
|
-
* // name: "STRING_VALUE", // required
|
|
112
|
-
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
113
|
-
* // optional: true || false, // required
|
|
114
|
-
* // },
|
|
115
|
-
* // ],
|
|
121
|
+
* // model: "STRING_VALUE",
|
|
116
122
|
* // id: "STRING_VALUE", // required
|
|
117
123
|
* // createdAt: "STRING_VALUE", // required
|
|
118
124
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -43,9 +43,18 @@ declare const GetAgentCommand_base: {
|
|
|
43
43
|
* // { // GetAgentOutput
|
|
44
44
|
* // agent: { // Agent
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
-
* // model: "STRING_VALUE",
|
|
47
|
-
* // instructions: "STRING_VALUE", // required
|
|
48
46
|
* // category: "STRING_VALUE",
|
|
47
|
+
* // instructions: "STRING_VALUE", // required
|
|
48
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // variables: [ // AgentVariablesList
|
|
52
|
+
* // { // AgentVariable
|
|
53
|
+
* // name: "STRING_VALUE", // required
|
|
54
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
55
|
+
* // optional: true || false, // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
49
58
|
* // capabilities: [ // AgentCapabilitiesList
|
|
50
59
|
* // { // AgentCapability Union: only one key present
|
|
51
60
|
* // tool: { // AgentTool
|
|
@@ -71,13 +80,7 @@ declare const GetAgentCommand_base: {
|
|
|
71
80
|
* // },
|
|
72
81
|
* // },
|
|
73
82
|
* // ],
|
|
74
|
-
* //
|
|
75
|
-
* // { // AgentVariable
|
|
76
|
-
* // name: "STRING_VALUE", // required
|
|
77
|
-
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
78
|
-
* // optional: true || false, // required
|
|
79
|
-
* // },
|
|
80
|
-
* // ],
|
|
83
|
+
* // model: "STRING_VALUE",
|
|
81
84
|
* // id: "STRING_VALUE", // required
|
|
82
85
|
* // createdAt: "STRING_VALUE", // required
|
|
83
86
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -43,9 +43,18 @@ declare const ListAgentsCommand_base: {
|
|
|
43
43
|
* // agents: [ // AgentsList // required
|
|
44
44
|
* // { // Agent
|
|
45
45
|
* // name: "STRING_VALUE", // required
|
|
46
|
-
* // model: "STRING_VALUE",
|
|
47
|
-
* // instructions: "STRING_VALUE", // required
|
|
48
46
|
* // category: "STRING_VALUE",
|
|
47
|
+
* // instructions: "STRING_VALUE", // required
|
|
48
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
49
|
+
* // "STRING_VALUE",
|
|
50
|
+
* // ],
|
|
51
|
+
* // variables: [ // AgentVariablesList
|
|
52
|
+
* // { // AgentVariable
|
|
53
|
+
* // name: "STRING_VALUE", // required
|
|
54
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
55
|
+
* // optional: true || false, // required
|
|
56
|
+
* // },
|
|
57
|
+
* // ],
|
|
49
58
|
* // capabilities: [ // AgentCapabilitiesList
|
|
50
59
|
* // { // AgentCapability Union: only one key present
|
|
51
60
|
* // tool: { // AgentTool
|
|
@@ -71,13 +80,7 @@ declare const ListAgentsCommand_base: {
|
|
|
71
80
|
* // },
|
|
72
81
|
* // },
|
|
73
82
|
* // ],
|
|
74
|
-
* //
|
|
75
|
-
* // { // AgentVariable
|
|
76
|
-
* // name: "STRING_VALUE", // required
|
|
77
|
-
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
78
|
-
* // optional: true || false, // required
|
|
79
|
-
* // },
|
|
80
|
-
* // ],
|
|
83
|
+
* // model: "STRING_VALUE",
|
|
81
84
|
* // id: "STRING_VALUE", // required
|
|
82
85
|
* // createdAt: "STRING_VALUE", // required
|
|
83
86
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -36,9 +36,18 @@ declare const UpdateAgentCommand_base: {
|
|
|
36
36
|
* const client = new WilmaClient(config);
|
|
37
37
|
* const input = { // UpdateAgentInput
|
|
38
38
|
* name: "STRING_VALUE", // required
|
|
39
|
-
* model: "STRING_VALUE",
|
|
40
|
-
* instructions: "STRING_VALUE", // required
|
|
41
39
|
* category: "STRING_VALUE",
|
|
40
|
+
* instructions: "STRING_VALUE", // required
|
|
41
|
+
* guidelines: [ // AgentGuidelinesList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* variables: [ // AgentVariablesList
|
|
45
|
+
* { // AgentVariable
|
|
46
|
+
* name: "STRING_VALUE", // required
|
|
47
|
+
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
48
|
+
* optional: true || false, // required
|
|
49
|
+
* },
|
|
50
|
+
* ],
|
|
42
51
|
* capabilities: [ // AgentCapabilitiesList
|
|
43
52
|
* { // AgentCapability Union: only one key present
|
|
44
53
|
* tool: { // AgentTool
|
|
@@ -64,13 +73,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
64
73
|
* },
|
|
65
74
|
* },
|
|
66
75
|
* ],
|
|
67
|
-
*
|
|
68
|
-
* { // AgentVariable
|
|
69
|
-
* name: "STRING_VALUE", // required
|
|
70
|
-
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
71
|
-
* optional: true || false, // required
|
|
72
|
-
* },
|
|
73
|
-
* ],
|
|
76
|
+
* model: "STRING_VALUE",
|
|
74
77
|
* company: "STRING_VALUE",
|
|
75
78
|
* agentId: "STRING_VALUE", // required
|
|
76
79
|
* };
|
|
@@ -79,9 +82,18 @@ declare const UpdateAgentCommand_base: {
|
|
|
79
82
|
* // { // UpdateAgentOutput
|
|
80
83
|
* // agent: { // Agent
|
|
81
84
|
* // name: "STRING_VALUE", // required
|
|
82
|
-
* // model: "STRING_VALUE",
|
|
83
|
-
* // instructions: "STRING_VALUE", // required
|
|
84
85
|
* // category: "STRING_VALUE",
|
|
86
|
+
* // instructions: "STRING_VALUE", // required
|
|
87
|
+
* // guidelines: [ // AgentGuidelinesList
|
|
88
|
+
* // "STRING_VALUE",
|
|
89
|
+
* // ],
|
|
90
|
+
* // variables: [ // AgentVariablesList
|
|
91
|
+
* // { // AgentVariable
|
|
92
|
+
* // name: "STRING_VALUE", // required
|
|
93
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
94
|
+
* // optional: true || false, // required
|
|
95
|
+
* // },
|
|
96
|
+
* // ],
|
|
85
97
|
* // capabilities: [ // AgentCapabilitiesList
|
|
86
98
|
* // { // AgentCapability Union: only one key present
|
|
87
99
|
* // tool: { // AgentTool
|
|
@@ -107,13 +119,7 @@ declare const UpdateAgentCommand_base: {
|
|
|
107
119
|
* // },
|
|
108
120
|
* // },
|
|
109
121
|
* // ],
|
|
110
|
-
* //
|
|
111
|
-
* // { // AgentVariable
|
|
112
|
-
* // name: "STRING_VALUE", // required
|
|
113
|
-
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
114
|
-
* // optional: true || false, // required
|
|
115
|
-
* // },
|
|
116
|
-
* // ],
|
|
122
|
+
* // model: "STRING_VALUE",
|
|
117
123
|
* // id: "STRING_VALUE", // required
|
|
118
124
|
* // createdAt: "STRING_VALUE", // required
|
|
119
125
|
* // updatedAt: "STRING_VALUE",
|
|
@@ -189,18 +189,19 @@ export interface AgentVariable {
|
|
|
189
189
|
export interface Agent {
|
|
190
190
|
name: string;
|
|
191
191
|
/**
|
|
192
|
-
*
|
|
192
|
+
* Category of the agent, e.g.: 'Support'
|
|
193
193
|
* @public
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
category?: string | undefined;
|
|
196
196
|
instructions: string;
|
|
197
|
+
guidelines?: (string)[] | undefined;
|
|
198
|
+
variables?: (AgentVariable)[] | undefined;
|
|
199
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
197
200
|
/**
|
|
198
|
-
*
|
|
201
|
+
* AI model specification using URI format for provider, model and parameters. Examples: 'default', 'google://gemini-3-flash-preview', 'openai://gpt-4o?timeout=30&temperature=0.7', 'openai://gpt-4.1'
|
|
199
202
|
* @public
|
|
200
203
|
*/
|
|
201
|
-
|
|
202
|
-
capabilities?: (AgentCapability)[] | undefined;
|
|
203
|
-
variables?: (AgentVariable)[] | undefined;
|
|
204
|
+
model?: string | undefined;
|
|
204
205
|
id: string;
|
|
205
206
|
createdAt: string;
|
|
206
207
|
updatedAt?: string | undefined;
|
|
@@ -295,18 +296,19 @@ export interface ChatHistory {
|
|
|
295
296
|
export interface CreateAgentInput {
|
|
296
297
|
name: string;
|
|
297
298
|
/**
|
|
298
|
-
*
|
|
299
|
+
* Category of the agent, e.g.: 'Support'
|
|
299
300
|
* @public
|
|
300
301
|
*/
|
|
301
|
-
|
|
302
|
+
category?: string | undefined;
|
|
302
303
|
instructions: string;
|
|
304
|
+
guidelines?: (string)[] | undefined;
|
|
305
|
+
variables?: (AgentVariable)[] | undefined;
|
|
306
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
303
307
|
/**
|
|
304
|
-
*
|
|
308
|
+
* AI model specification using URI format for provider, model and parameters. Examples: 'default', 'google://gemini-3-flash-preview', 'openai://gpt-4o?timeout=30&temperature=0.7', 'openai://gpt-4.1'
|
|
305
309
|
* @public
|
|
306
310
|
*/
|
|
307
|
-
|
|
308
|
-
capabilities?: (AgentCapability)[] | undefined;
|
|
309
|
-
variables?: (AgentVariable)[] | undefined;
|
|
311
|
+
model?: string | undefined;
|
|
310
312
|
company?: string | undefined;
|
|
311
313
|
}
|
|
312
314
|
/**
|
|
@@ -1035,18 +1037,19 @@ export interface PatchSettingsOutput {
|
|
|
1035
1037
|
export interface UpdateAgentInput {
|
|
1036
1038
|
name: string;
|
|
1037
1039
|
/**
|
|
1038
|
-
*
|
|
1040
|
+
* Category of the agent, e.g.: 'Support'
|
|
1039
1041
|
* @public
|
|
1040
1042
|
*/
|
|
1041
|
-
|
|
1043
|
+
category?: string | undefined;
|
|
1042
1044
|
instructions: string;
|
|
1045
|
+
guidelines?: (string)[] | undefined;
|
|
1046
|
+
variables?: (AgentVariable)[] | undefined;
|
|
1047
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
1043
1048
|
/**
|
|
1044
|
-
*
|
|
1049
|
+
* AI model specification using URI format for provider, model and parameters. Examples: 'default', 'google://gemini-3-flash-preview', 'openai://gpt-4o?timeout=30&temperature=0.7', 'openai://gpt-4.1'
|
|
1045
1050
|
* @public
|
|
1046
1051
|
*/
|
|
1047
|
-
|
|
1048
|
-
capabilities?: (AgentCapability)[] | undefined;
|
|
1049
|
-
variables?: (AgentVariable)[] | undefined;
|
|
1052
|
+
model?: string | undefined;
|
|
1050
1053
|
company?: string | undefined;
|
|
1051
1054
|
agentId: string;
|
|
1052
1055
|
}
|
|
@@ -15,8 +15,13 @@ export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
|
15
15
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
16
16
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
17
17
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
18
|
-
apiVersion: string;
|
|
19
18
|
cacheMiddleware?: boolean | undefined;
|
|
19
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
20
|
+
protocolSettings?: {
|
|
21
|
+
[setting: string]: unknown;
|
|
22
|
+
defaultNamespace?: string | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
apiVersion: string;
|
|
20
25
|
urlParser: import("@smithy/types").UrlParser;
|
|
21
26
|
base64Decoder: import("@smithy/types").Decoder;
|
|
22
27
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -16,8 +16,13 @@ export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
|
16
16
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
17
17
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
18
18
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
19
|
-
apiVersion: string;
|
|
20
19
|
cacheMiddleware?: boolean | undefined;
|
|
20
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
21
|
+
protocolSettings?: {
|
|
22
|
+
[setting: string]: unknown;
|
|
23
|
+
defaultNamespace?: string | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
apiVersion: string;
|
|
21
26
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
27
|
base64Decoder: import("@smithy/types").Decoder;
|
|
23
28
|
base64Encoder: (_input: string | Uint8Array) => string;
|
|
@@ -8,8 +8,13 @@ export declare const getRuntimeConfig: (config: WilmaClientConfig) => {
|
|
|
8
8
|
env?: "stage" | "stable" | "prod" | undefined;
|
|
9
9
|
token: import("@wildix/smithy-utils").TokenProvider;
|
|
10
10
|
requestHandler: import("@smithy/types").NodeHttpHandlerOptions | import("@smithy/types").FetchHttpHandlerOptions | Record<string, unknown> | import("@smithy/protocol-http").HttpHandler<any> | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
11
|
-
apiVersion: string;
|
|
12
11
|
cacheMiddleware?: boolean | undefined;
|
|
12
|
+
protocol?: import("@smithy/types").ClientProtocol<any, any> | import("@smithy/types").$ClientProtocol<any, any> | import("@smithy/types").ClientProtocolCtor<any, any> | import("@smithy/types").$ClientProtocolCtor<any, any> | undefined;
|
|
13
|
+
protocolSettings?: {
|
|
14
|
+
[setting: string]: unknown;
|
|
15
|
+
defaultNamespace?: string | undefined;
|
|
16
|
+
} | undefined;
|
|
17
|
+
apiVersion: string;
|
|
13
18
|
urlParser: import("@smithy/types").UrlParser;
|
|
14
19
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
15
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-wilma-client",
|
|
3
3
|
"description": "@wildix/wim-wilma-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.12",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|