@wildix/wim-wilma-client 0.0.4 → 0.0.5
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/Wilma.js +14 -0
- package/dist-cjs/commands/CreateAgentCommand.js +21 -0
- package/dist-cjs/commands/DeleteAgentCommand.js +21 -0
- package/dist-cjs/commands/ExecuteAgentCommand.js +21 -0
- package/dist-cjs/commands/GetAgentCommand.js +21 -0
- package/dist-cjs/commands/ListAgentsCommand.js +21 -0
- package/dist-cjs/commands/ListAgentsNamesCommand.js +21 -0
- package/dist-cjs/commands/UpdateAgentCommand.js +21 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +30 -1
- package/dist-cjs/protocols/Aws_restJson1.js +249 -4
- package/dist-es/Wilma.js +14 -0
- package/dist-es/commands/CreateAgentCommand.js +17 -0
- package/dist-es/commands/DeleteAgentCommand.js +17 -0
- package/dist-es/commands/ExecuteAgentCommand.js +17 -0
- package/dist-es/commands/GetAgentCommand.js +17 -0
- package/dist-es/commands/ListAgentsCommand.js +17 -0
- package/dist-es/commands/ListAgentsNamesCommand.js +17 -0
- package/dist-es/commands/UpdateAgentCommand.js +17 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +29 -0
- package/dist-es/protocols/Aws_restJson1.js +234 -3
- package/dist-types/Wilma.d.ts +51 -0
- package/dist-types/WilmaClient.d.ts +9 -2
- package/dist-types/commands/CreateAgentCommand.d.ts +142 -0
- package/dist-types/commands/DeleteAgentCommand.d.ts +73 -0
- package/dist-types/commands/ExecuteAgentCommand.d.ts +84 -0
- package/dist-types/commands/GetAgentCommand.d.ts +113 -0
- package/dist-types/commands/ListAgentsCommand.d.ts +112 -0
- package/dist-types/commands/ListAgentsNamesCommand.d.ts +80 -0
- package/dist-types/commands/UpdateAgentCommand.d.ts +145 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +326 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- 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
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WilmaClientResolvedConfig } from "../WilmaClient";
|
|
2
|
+
import { UpdateAgentInput, UpdateAgentOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateAgentCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateAgentCommandInput extends UpdateAgentInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateAgentCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateAgentCommandOutput extends UpdateAgentOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateAgentCommand_base: {
|
|
25
|
+
new (input: UpdateAgentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAgentCommandInput, UpdateAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateAgentCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateAgentCommandInput, UpdateAgentCommandOutput, WilmaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Updates the configuration of an existing voice bot with new settings.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { WilmaClient, UpdateAgentCommand } from "@wildix/wim-wilma-client"; // ES Modules import
|
|
35
|
+
* // const { WilmaClient, UpdateAgentCommand } = require("@wildix/wim-wilma-client"); // CommonJS import
|
|
36
|
+
* const client = new WilmaClient(config);
|
|
37
|
+
* const input = { // UpdateAgentInput
|
|
38
|
+
* name: "STRING_VALUE", // required
|
|
39
|
+
* model: "STRING_VALUE",
|
|
40
|
+
* instructions: "STRING_VALUE", // required
|
|
41
|
+
* capabilities: [ // AgentCapabilitiesList
|
|
42
|
+
* { // AgentCapability Union: only one key present
|
|
43
|
+
* tool: { // AgentTool
|
|
44
|
+
* id: "STRING_VALUE", // required
|
|
45
|
+
* variables: [ // AgentToolVariablesList
|
|
46
|
+
* { // AgentToolVariable
|
|
47
|
+
* name: "STRING_VALUE", // required
|
|
48
|
+
* handler: { // AgentToolVariableHandler Union: only one key present
|
|
49
|
+
* auto: {},
|
|
50
|
+
* guided: { // AgentToolVariableGuidedHandler
|
|
51
|
+
* description: "STRING_VALUE", // required
|
|
52
|
+
* },
|
|
53
|
+
* predefined: {},
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* },
|
|
58
|
+
* kb: { // AgentKnowledgeBase
|
|
59
|
+
* knowledgeBaseId: "STRING_VALUE",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* variables: [ // AgentVariablesList
|
|
64
|
+
* { // AgentVariable
|
|
65
|
+
* name: "STRING_VALUE", // required
|
|
66
|
+
* type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
67
|
+
* optional: true || false, // required
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* company: "STRING_VALUE",
|
|
71
|
+
* agentId: "STRING_VALUE", // required
|
|
72
|
+
* };
|
|
73
|
+
* const command = new UpdateAgentCommand(input);
|
|
74
|
+
* const response = await client.send(command);
|
|
75
|
+
* // { // UpdateAgentOutput
|
|
76
|
+
* // agent: { // Agent
|
|
77
|
+
* // name: "STRING_VALUE", // required
|
|
78
|
+
* // model: "STRING_VALUE",
|
|
79
|
+
* // instructions: "STRING_VALUE", // required
|
|
80
|
+
* // capabilities: [ // AgentCapabilitiesList
|
|
81
|
+
* // { // AgentCapability Union: only one key present
|
|
82
|
+
* // tool: { // AgentTool
|
|
83
|
+
* // id: "STRING_VALUE", // required
|
|
84
|
+
* // variables: [ // AgentToolVariablesList
|
|
85
|
+
* // { // AgentToolVariable
|
|
86
|
+
* // name: "STRING_VALUE", // required
|
|
87
|
+
* // handler: { // AgentToolVariableHandler Union: only one key present
|
|
88
|
+
* // auto: {},
|
|
89
|
+
* // guided: { // AgentToolVariableGuidedHandler
|
|
90
|
+
* // description: "STRING_VALUE", // required
|
|
91
|
+
* // },
|
|
92
|
+
* // predefined: {},
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // ],
|
|
96
|
+
* // },
|
|
97
|
+
* // kb: { // AgentKnowledgeBase
|
|
98
|
+
* // knowledgeBaseId: "STRING_VALUE",
|
|
99
|
+
* // },
|
|
100
|
+
* // },
|
|
101
|
+
* // ],
|
|
102
|
+
* // variables: [ // AgentVariablesList
|
|
103
|
+
* // { // AgentVariable
|
|
104
|
+
* // name: "STRING_VALUE", // required
|
|
105
|
+
* // type: "string" || "number" || "boolean" || "string_array" || "number_array", // required
|
|
106
|
+
* // optional: true || false, // required
|
|
107
|
+
* // },
|
|
108
|
+
* // ],
|
|
109
|
+
* // id: "STRING_VALUE", // required
|
|
110
|
+
* // createdAt: "STRING_VALUE", // required
|
|
111
|
+
* // updatedAt: "STRING_VALUE",
|
|
112
|
+
* // },
|
|
113
|
+
* // };
|
|
114
|
+
*
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
117
|
+
* @param UpdateAgentCommandInput - {@link UpdateAgentCommandInput}
|
|
118
|
+
* @returns {@link UpdateAgentCommandOutput}
|
|
119
|
+
* @see {@link UpdateAgentCommandInput} for command's `input` shape.
|
|
120
|
+
* @see {@link UpdateAgentCommandOutput} for command's `response` shape.
|
|
121
|
+
* @see {@link WilmaClientResolvedConfig | config} for WilmaClient's `config` shape.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link NotFoundException} (client fault)
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ValidationException} (client fault)
|
|
126
|
+
*
|
|
127
|
+
* @throws {@link WilmaServiceException}
|
|
128
|
+
* <p>Base exception class for all service exceptions from Wilma service.</p>
|
|
129
|
+
*
|
|
130
|
+
*
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export declare class UpdateAgentCommand extends UpdateAgentCommand_base {
|
|
134
|
+
/** @internal type navigation helper, not in runtime. */
|
|
135
|
+
protected static __types: {
|
|
136
|
+
api: {
|
|
137
|
+
input: UpdateAgentInput;
|
|
138
|
+
output: UpdateAgentOutput;
|
|
139
|
+
};
|
|
140
|
+
sdk: {
|
|
141
|
+
input: UpdateAgentCommandInput;
|
|
142
|
+
output: UpdateAgentCommandOutput;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
export * from "./CreateAgentCommand";
|
|
2
|
+
export * from "./DeleteAgentCommand";
|
|
1
3
|
export * from "./DeleteChatCommand";
|
|
2
4
|
export * from "./DislikeAnswerCommand";
|
|
5
|
+
export * from "./ExecuteAgentCommand";
|
|
6
|
+
export * from "./GetAgentCommand";
|
|
3
7
|
export * from "./GetChatCommand";
|
|
4
8
|
export * from "./LikeAnswerCommand";
|
|
5
9
|
export * from "./ListAgentFeedbacksCommand";
|
|
10
|
+
export * from "./ListAgentsCommand";
|
|
11
|
+
export * from "./ListAgentsNamesCommand";
|
|
6
12
|
export * from "./ListChatsCommand";
|
|
7
13
|
export * from "./ListFeedbacksCommand";
|
|
14
|
+
export * from "./UpdateAgentCommand";
|
|
@@ -34,6 +34,203 @@ export declare class ValidationException extends __BaseException {
|
|
|
34
34
|
*/
|
|
35
35
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export interface AgentKnowledgeBase {
|
|
41
|
+
knowledgeBaseId?: string | undefined;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export interface AgentToolVariableAutoHandler {
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export interface AgentToolVariableGuidedHandler {
|
|
52
|
+
description: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
export interface AgentToolVariablePredefinedHandler {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
export type AgentToolVariableHandler = AgentToolVariableHandler.AutoMember | AgentToolVariableHandler.GuidedMember | AgentToolVariableHandler.PredefinedMember | AgentToolVariableHandler.$UnknownMember;
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
export declare namespace AgentToolVariableHandler {
|
|
67
|
+
interface AutoMember {
|
|
68
|
+
auto: AgentToolVariableAutoHandler;
|
|
69
|
+
guided?: never;
|
|
70
|
+
predefined?: never;
|
|
71
|
+
$unknown?: never;
|
|
72
|
+
}
|
|
73
|
+
interface GuidedMember {
|
|
74
|
+
auto?: never;
|
|
75
|
+
guided: AgentToolVariableGuidedHandler;
|
|
76
|
+
predefined?: never;
|
|
77
|
+
$unknown?: never;
|
|
78
|
+
}
|
|
79
|
+
interface PredefinedMember {
|
|
80
|
+
auto?: never;
|
|
81
|
+
guided?: never;
|
|
82
|
+
predefined: AgentToolVariablePredefinedHandler;
|
|
83
|
+
$unknown?: never;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
interface $UnknownMember {
|
|
89
|
+
auto?: never;
|
|
90
|
+
guided?: never;
|
|
91
|
+
predefined?: never;
|
|
92
|
+
$unknown: [string, any];
|
|
93
|
+
}
|
|
94
|
+
interface Visitor<T> {
|
|
95
|
+
auto: (value: AgentToolVariableAutoHandler) => T;
|
|
96
|
+
guided: (value: AgentToolVariableGuidedHandler) => T;
|
|
97
|
+
predefined: (value: AgentToolVariablePredefinedHandler) => T;
|
|
98
|
+
_: (name: string, value: any) => T;
|
|
99
|
+
}
|
|
100
|
+
const visit: <T>(value: AgentToolVariableHandler, visitor: Visitor<T>) => T;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
export interface AgentToolVariable {
|
|
106
|
+
/**
|
|
107
|
+
* Name of the tool variable, e.g.: 'myvar'
|
|
108
|
+
* @public
|
|
109
|
+
*/
|
|
110
|
+
name: string;
|
|
111
|
+
handler?: AgentToolVariableHandler | undefined;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* @public
|
|
115
|
+
*/
|
|
116
|
+
export interface AgentTool {
|
|
117
|
+
/**
|
|
118
|
+
* Unique identifier of the tool
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
id: string;
|
|
122
|
+
variables?: (AgentToolVariable)[] | undefined;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export type AgentCapability = AgentCapability.KbMember | AgentCapability.ToolMember | AgentCapability.$UnknownMember;
|
|
128
|
+
/**
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
export declare namespace AgentCapability {
|
|
132
|
+
interface ToolMember {
|
|
133
|
+
tool: AgentTool;
|
|
134
|
+
kb?: never;
|
|
135
|
+
$unknown?: never;
|
|
136
|
+
}
|
|
137
|
+
interface KbMember {
|
|
138
|
+
tool?: never;
|
|
139
|
+
kb: AgentKnowledgeBase;
|
|
140
|
+
$unknown?: never;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
interface $UnknownMember {
|
|
146
|
+
tool?: never;
|
|
147
|
+
kb?: never;
|
|
148
|
+
$unknown: [string, any];
|
|
149
|
+
}
|
|
150
|
+
interface Visitor<T> {
|
|
151
|
+
tool: (value: AgentTool) => T;
|
|
152
|
+
kb: (value: AgentKnowledgeBase) => T;
|
|
153
|
+
_: (name: string, value: any) => T;
|
|
154
|
+
}
|
|
155
|
+
const visit: <T>(value: AgentCapability, visitor: Visitor<T>) => T;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
* @enum
|
|
160
|
+
*/
|
|
161
|
+
export declare const AgentVariableType: {
|
|
162
|
+
readonly BOOLEAN: "boolean";
|
|
163
|
+
readonly NUMBER: "number";
|
|
164
|
+
readonly NUMBER_ARRAY: "number_array";
|
|
165
|
+
readonly STRING: "string";
|
|
166
|
+
readonly STRING_ARRAY: "string_array";
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
*/
|
|
171
|
+
export type AgentVariableType = typeof AgentVariableType[keyof typeof AgentVariableType];
|
|
172
|
+
/**
|
|
173
|
+
* @public
|
|
174
|
+
*/
|
|
175
|
+
export interface AgentVariable {
|
|
176
|
+
name: string;
|
|
177
|
+
type: AgentVariableType;
|
|
178
|
+
optional: boolean;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @public
|
|
182
|
+
*/
|
|
183
|
+
export interface Agent {
|
|
184
|
+
name: string;
|
|
185
|
+
/**
|
|
186
|
+
* 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'
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
model?: string | undefined;
|
|
190
|
+
instructions: string;
|
|
191
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
192
|
+
variables?: (AgentVariable)[] | undefined;
|
|
193
|
+
id: string;
|
|
194
|
+
createdAt: string;
|
|
195
|
+
updatedAt?: string | undefined;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
export interface AgentExecutionError {
|
|
201
|
+
/**
|
|
202
|
+
* Message of the agent execution error
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
message: string;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
export interface AgentExecutionResult {
|
|
211
|
+
/**
|
|
212
|
+
* Output of the tool execution
|
|
213
|
+
* @public
|
|
214
|
+
*/
|
|
215
|
+
output: __DocumentType;
|
|
216
|
+
/**
|
|
217
|
+
* Error of the tool execution
|
|
218
|
+
* @public
|
|
219
|
+
*/
|
|
220
|
+
error: AgentExecutionError;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export interface AgentInfo {
|
|
226
|
+
id: string;
|
|
227
|
+
name: string;
|
|
228
|
+
/**
|
|
229
|
+
* 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'
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
model?: string | undefined;
|
|
233
|
+
}
|
|
37
234
|
/**
|
|
38
235
|
* @public
|
|
39
236
|
*/
|
|
@@ -76,6 +273,39 @@ export interface ChatHistory {
|
|
|
76
273
|
messages: (__DocumentType)[];
|
|
77
274
|
mentions?: (__DocumentType)[] | undefined;
|
|
78
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export interface CreateAgentInput {
|
|
280
|
+
name: string;
|
|
281
|
+
/**
|
|
282
|
+
* 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'
|
|
283
|
+
* @public
|
|
284
|
+
*/
|
|
285
|
+
model?: string | undefined;
|
|
286
|
+
instructions: string;
|
|
287
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
288
|
+
variables?: (AgentVariable)[] | undefined;
|
|
289
|
+
company?: string | undefined;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
export interface CreateAgentOutput {
|
|
295
|
+
agent: Agent;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
export interface DeleteAgentInput {
|
|
301
|
+
company?: string | undefined;
|
|
302
|
+
agentId: string;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
export interface DeleteAgentOutput {
|
|
308
|
+
}
|
|
79
309
|
/**
|
|
80
310
|
* @public
|
|
81
311
|
*/
|
|
@@ -120,6 +350,56 @@ export interface DislikeAnswerInput {
|
|
|
120
350
|
*/
|
|
121
351
|
export interface DislikeAnswerOutput {
|
|
122
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* @public
|
|
355
|
+
*/
|
|
356
|
+
export interface ExecuteAgentInput {
|
|
357
|
+
company?: string | undefined;
|
|
358
|
+
agentId: string;
|
|
359
|
+
/**
|
|
360
|
+
* TODO
|
|
361
|
+
* @public
|
|
362
|
+
*/
|
|
363
|
+
data?: string | undefined;
|
|
364
|
+
/**
|
|
365
|
+
* TODO
|
|
366
|
+
* @public
|
|
367
|
+
*/
|
|
368
|
+
variables?: __DocumentType | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* Optional parameter, by which service the agent is executed, e.g. chatbots.
|
|
371
|
+
* @public
|
|
372
|
+
*/
|
|
373
|
+
service?: string | undefined;
|
|
374
|
+
/**
|
|
375
|
+
* Optional parameter, for which user the agent is executed, e.g. john.doe@example.com.
|
|
376
|
+
* @public
|
|
377
|
+
*/
|
|
378
|
+
user?: string | undefined;
|
|
379
|
+
}
|
|
380
|
+
/**
|
|
381
|
+
* @public
|
|
382
|
+
*/
|
|
383
|
+
export interface ExecuteAgentOutput {
|
|
384
|
+
/**
|
|
385
|
+
* Result of the tool execution.
|
|
386
|
+
* @public
|
|
387
|
+
*/
|
|
388
|
+
result: AgentExecutionResult;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* @public
|
|
392
|
+
*/
|
|
393
|
+
export interface GetAgentInput {
|
|
394
|
+
company?: string | undefined;
|
|
395
|
+
agentId: string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
export interface GetAgentOutput {
|
|
401
|
+
agent: Agent;
|
|
402
|
+
}
|
|
123
403
|
/**
|
|
124
404
|
* @public
|
|
125
405
|
*/
|
|
@@ -185,6 +465,30 @@ export interface ListAgentFeedbacksOutput {
|
|
|
185
465
|
feedbacks: (ChatFeedback)[];
|
|
186
466
|
lastEvaluatedKey?: string | undefined;
|
|
187
467
|
}
|
|
468
|
+
/**
|
|
469
|
+
* @public
|
|
470
|
+
*/
|
|
471
|
+
export interface ListAgentsInput {
|
|
472
|
+
company?: string | undefined;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
*/
|
|
477
|
+
export interface ListAgentsOutput {
|
|
478
|
+
agents: (Agent)[];
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
export interface ListAgentsNamesInput {
|
|
484
|
+
company?: string | undefined;
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @public
|
|
488
|
+
*/
|
|
489
|
+
export interface ListAgentsNamesOutput {
|
|
490
|
+
agents: (AgentInfo)[];
|
|
491
|
+
}
|
|
188
492
|
/**
|
|
189
493
|
* @public
|
|
190
494
|
*/
|
|
@@ -226,3 +530,25 @@ export interface ListFeedbacksOutput {
|
|
|
226
530
|
feedbacks: (ChatFeedback)[];
|
|
227
531
|
lastEvaluatedKey?: string | undefined;
|
|
228
532
|
}
|
|
533
|
+
/**
|
|
534
|
+
* @public
|
|
535
|
+
*/
|
|
536
|
+
export interface UpdateAgentInput {
|
|
537
|
+
name: string;
|
|
538
|
+
/**
|
|
539
|
+
* 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'
|
|
540
|
+
* @public
|
|
541
|
+
*/
|
|
542
|
+
model?: string | undefined;
|
|
543
|
+
instructions: string;
|
|
544
|
+
capabilities?: (AgentCapability)[] | undefined;
|
|
545
|
+
variables?: (AgentVariable)[] | undefined;
|
|
546
|
+
company?: string | undefined;
|
|
547
|
+
agentId: string;
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* @public
|
|
551
|
+
*/
|
|
552
|
+
export interface UpdateAgentOutput {
|
|
553
|
+
agent: Agent;
|
|
554
|
+
}
|
|
@@ -1,12 +1,27 @@
|
|
|
1
|
+
import { CreateAgentCommandInput, CreateAgentCommandOutput } from "../commands/CreateAgentCommand";
|
|
2
|
+
import { DeleteAgentCommandInput, DeleteAgentCommandOutput } from "../commands/DeleteAgentCommand";
|
|
1
3
|
import { DeleteChatCommandInput, DeleteChatCommandOutput } from "../commands/DeleteChatCommand";
|
|
2
4
|
import { DislikeAnswerCommandInput, DislikeAnswerCommandOutput } from "../commands/DislikeAnswerCommand";
|
|
5
|
+
import { ExecuteAgentCommandInput, ExecuteAgentCommandOutput } from "../commands/ExecuteAgentCommand";
|
|
6
|
+
import { GetAgentCommandInput, GetAgentCommandOutput } from "../commands/GetAgentCommand";
|
|
3
7
|
import { GetChatCommandInput, GetChatCommandOutput } from "../commands/GetChatCommand";
|
|
4
8
|
import { LikeAnswerCommandInput, LikeAnswerCommandOutput } from "../commands/LikeAnswerCommand";
|
|
5
9
|
import { ListAgentFeedbacksCommandInput, ListAgentFeedbacksCommandOutput } from "../commands/ListAgentFeedbacksCommand";
|
|
10
|
+
import { ListAgentsCommandInput, ListAgentsCommandOutput } from "../commands/ListAgentsCommand";
|
|
11
|
+
import { ListAgentsNamesCommandInput, ListAgentsNamesCommandOutput } from "../commands/ListAgentsNamesCommand";
|
|
6
12
|
import { ListChatsCommandInput, ListChatsCommandOutput } from "../commands/ListChatsCommand";
|
|
7
13
|
import { ListFeedbacksCommandInput, ListFeedbacksCommandOutput } from "../commands/ListFeedbacksCommand";
|
|
14
|
+
import { UpdateAgentCommandInput, UpdateAgentCommandOutput } from "../commands/UpdateAgentCommand";
|
|
8
15
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
9
16
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
17
|
+
/**
|
|
18
|
+
* serializeAws_restJson1CreateAgentCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const se_CreateAgentCommand: (input: CreateAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* serializeAws_restJson1DeleteAgentCommand
|
|
23
|
+
*/
|
|
24
|
+
export declare const se_DeleteAgentCommand: (input: DeleteAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
10
25
|
/**
|
|
11
26
|
* serializeAws_restJson1DeleteChatCommand
|
|
12
27
|
*/
|
|
@@ -15,6 +30,14 @@ export declare const se_DeleteChatCommand: (input: DeleteChatCommandInput, conte
|
|
|
15
30
|
* serializeAws_restJson1DislikeAnswerCommand
|
|
16
31
|
*/
|
|
17
32
|
export declare const se_DislikeAnswerCommand: (input: DislikeAnswerCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* serializeAws_restJson1ExecuteAgentCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const se_ExecuteAgentCommand: (input: ExecuteAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
+
/**
|
|
38
|
+
* serializeAws_restJson1GetAgentCommand
|
|
39
|
+
*/
|
|
40
|
+
export declare const se_GetAgentCommand: (input: GetAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
41
|
/**
|
|
19
42
|
* serializeAws_restJson1GetChatCommand
|
|
20
43
|
*/
|
|
@@ -27,6 +50,14 @@ export declare const se_LikeAnswerCommand: (input: LikeAnswerCommandInput, conte
|
|
|
27
50
|
* serializeAws_restJson1ListAgentFeedbacksCommand
|
|
28
51
|
*/
|
|
29
52
|
export declare const se_ListAgentFeedbacksCommand: (input: ListAgentFeedbacksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
+
/**
|
|
54
|
+
* serializeAws_restJson1ListAgentsCommand
|
|
55
|
+
*/
|
|
56
|
+
export declare const se_ListAgentsCommand: (input: ListAgentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
+
/**
|
|
58
|
+
* serializeAws_restJson1ListAgentsNamesCommand
|
|
59
|
+
*/
|
|
60
|
+
export declare const se_ListAgentsNamesCommand: (input: ListAgentsNamesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
61
|
/**
|
|
31
62
|
* serializeAws_restJson1ListChatsCommand
|
|
32
63
|
*/
|
|
@@ -35,6 +66,18 @@ export declare const se_ListChatsCommand: (input: ListChatsCommandInput, context
|
|
|
35
66
|
* serializeAws_restJson1ListFeedbacksCommand
|
|
36
67
|
*/
|
|
37
68
|
export declare const se_ListFeedbacksCommand: (input: ListFeedbacksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
69
|
+
/**
|
|
70
|
+
* serializeAws_restJson1UpdateAgentCommand
|
|
71
|
+
*/
|
|
72
|
+
export declare const se_UpdateAgentCommand: (input: UpdateAgentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
+
/**
|
|
74
|
+
* deserializeAws_restJson1CreateAgentCommand
|
|
75
|
+
*/
|
|
76
|
+
export declare const de_CreateAgentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateAgentCommandOutput>;
|
|
77
|
+
/**
|
|
78
|
+
* deserializeAws_restJson1DeleteAgentCommand
|
|
79
|
+
*/
|
|
80
|
+
export declare const de_DeleteAgentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteAgentCommandOutput>;
|
|
38
81
|
/**
|
|
39
82
|
* deserializeAws_restJson1DeleteChatCommand
|
|
40
83
|
*/
|
|
@@ -43,6 +86,14 @@ export declare const de_DeleteChatCommand: (output: __HttpResponse, context: __S
|
|
|
43
86
|
* deserializeAws_restJson1DislikeAnswerCommand
|
|
44
87
|
*/
|
|
45
88
|
export declare const de_DislikeAnswerCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DislikeAnswerCommandOutput>;
|
|
89
|
+
/**
|
|
90
|
+
* deserializeAws_restJson1ExecuteAgentCommand
|
|
91
|
+
*/
|
|
92
|
+
export declare const de_ExecuteAgentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExecuteAgentCommandOutput>;
|
|
93
|
+
/**
|
|
94
|
+
* deserializeAws_restJson1GetAgentCommand
|
|
95
|
+
*/
|
|
96
|
+
export declare const de_GetAgentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetAgentCommandOutput>;
|
|
46
97
|
/**
|
|
47
98
|
* deserializeAws_restJson1GetChatCommand
|
|
48
99
|
*/
|
|
@@ -55,6 +106,14 @@ export declare const de_LikeAnswerCommand: (output: __HttpResponse, context: __S
|
|
|
55
106
|
* deserializeAws_restJson1ListAgentFeedbacksCommand
|
|
56
107
|
*/
|
|
57
108
|
export declare const de_ListAgentFeedbacksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentFeedbacksCommandOutput>;
|
|
109
|
+
/**
|
|
110
|
+
* deserializeAws_restJson1ListAgentsCommand
|
|
111
|
+
*/
|
|
112
|
+
export declare const de_ListAgentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentsCommandOutput>;
|
|
113
|
+
/**
|
|
114
|
+
* deserializeAws_restJson1ListAgentsNamesCommand
|
|
115
|
+
*/
|
|
116
|
+
export declare const de_ListAgentsNamesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListAgentsNamesCommandOutput>;
|
|
58
117
|
/**
|
|
59
118
|
* deserializeAws_restJson1ListChatsCommand
|
|
60
119
|
*/
|
|
@@ -63,3 +122,7 @@ export declare const de_ListChatsCommand: (output: __HttpResponse, context: __Se
|
|
|
63
122
|
* deserializeAws_restJson1ListFeedbacksCommand
|
|
64
123
|
*/
|
|
65
124
|
export declare const de_ListFeedbacksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListFeedbacksCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* deserializeAws_restJson1UpdateAgentCommand
|
|
127
|
+
*/
|
|
128
|
+
export declare const de_UpdateAgentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateAgentCommandOutput>;
|
|
@@ -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.5",
|
|
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",
|