@pulumi/digitalocean 4.48.0 → 4.49.0

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.
@@ -0,0 +1,498 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare class GenaiAgent extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing GenaiAgent resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GenaiAgentState, opts?: pulumi.CustomResourceOptions): GenaiAgent;
15
+ /**
16
+ * Returns true if the given object is an instance of GenaiAgent. This is designed to work even
17
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
18
+ */
19
+ static isInstance(obj: any): obj is GenaiAgent;
20
+ /**
21
+ * AgentGuardrail represents a Guardrail attached to Gen AI Agent
22
+ */
23
+ readonly agentGuardrails: pulumi.Output<outputs.GenaiAgentAgentGuardrail[] | undefined>;
24
+ /**
25
+ * Anthropic API Key information
26
+ */
27
+ readonly anthropicApiKeys: pulumi.Output<outputs.GenaiAgentAnthropicApiKey[] | undefined>;
28
+ /**
29
+ * Optional Anthropic API key ID to use with Anthropic models
30
+ */
31
+ readonly anthropicKeyUuid: pulumi.Output<string | undefined>;
32
+ /**
33
+ * List of API Key Infos
34
+ */
35
+ readonly apiKeyInfos: pulumi.Output<outputs.GenaiAgentApiKeyInfo[] | undefined>;
36
+ /**
37
+ * List of API Keys
38
+ */
39
+ readonly apiKeys: pulumi.Output<outputs.GenaiAgentApiKey[] | undefined>;
40
+ /**
41
+ * List of Chatbot Identifiers
42
+ */
43
+ readonly chatbotIdentifiers: pulumi.Output<outputs.GenaiAgentChatbotIdentifier[] | undefined>;
44
+ /**
45
+ * ChatBot configuration
46
+ */
47
+ readonly chatbots: pulumi.Output<outputs.GenaiAgentChatbot[] | undefined>;
48
+ /**
49
+ * List of child agents
50
+ */
51
+ readonly childAgents: pulumi.Output<outputs.GenaiAgentChildAgent[]>;
52
+ /**
53
+ * Timestamp when the Agent was created
54
+ */
55
+ readonly createdAt: pulumi.Output<string | undefined>;
56
+ /**
57
+ * List of API Key Infos
58
+ */
59
+ readonly deployments: pulumi.Output<outputs.GenaiAgentDeployment[] | undefined>;
60
+ /**
61
+ * Description for the Agent
62
+ */
63
+ readonly description: pulumi.Output<string | undefined>;
64
+ /**
65
+ * List of Functions
66
+ */
67
+ readonly functions: pulumi.Output<outputs.GenaiAgentFunction[] | undefined>;
68
+ /**
69
+ * If case condition
70
+ */
71
+ readonly ifCase: pulumi.Output<string | undefined>;
72
+ /**
73
+ * Instruction for the Agent
74
+ */
75
+ readonly instruction: pulumi.Output<string>;
76
+ /**
77
+ * K value
78
+ */
79
+ readonly k: pulumi.Output<number | undefined>;
80
+ /**
81
+ * Ids of the knowledge base(s) to attach to the agent
82
+ */
83
+ readonly knowledgeBaseUuids: pulumi.Output<string[] | undefined>;
84
+ /**
85
+ * List of Knowledge Bases
86
+ */
87
+ readonly knowledgeBases: pulumi.Output<outputs.GenaiAgentKnowledgeBase[]>;
88
+ /**
89
+ * Maximum tokens allowed
90
+ */
91
+ readonly maxTokens: pulumi.Output<number | undefined>;
92
+ /**
93
+ * Model UUID of the Agent
94
+ */
95
+ readonly modelUuid: pulumi.Output<string>;
96
+ /**
97
+ * Model of the Agent
98
+ */
99
+ readonly models: pulumi.Output<outputs.GenaiAgentModel[]>;
100
+ /**
101
+ * Name of the Agent
102
+ */
103
+ readonly name: pulumi.Output<string>;
104
+ /**
105
+ * OpenAI API Key information
106
+ */
107
+ readonly openAiApiKeys: pulumi.Output<outputs.GenaiAgentOpenAiApiKey[] | undefined>;
108
+ /**
109
+ * Optional OpenAI API key ID to use with OpenAI models
110
+ */
111
+ readonly openAiKeyUuid: pulumi.Output<string | undefined>;
112
+ /**
113
+ * List of child agents
114
+ */
115
+ readonly parentAgents: pulumi.Output<outputs.GenaiAgentParentAgent[]>;
116
+ /**
117
+ * Project ID of the Agent
118
+ */
119
+ readonly projectId: pulumi.Output<string>;
120
+ /**
121
+ * Indicates if the agent should provide citations in responses
122
+ */
123
+ readonly provideCitations: pulumi.Output<boolean | undefined>;
124
+ /**
125
+ * Region where the Agent is deployed
126
+ */
127
+ readonly region: pulumi.Output<string>;
128
+ /**
129
+ * Retrieval method used
130
+ */
131
+ readonly retrievalMethod: pulumi.Output<string | undefined>;
132
+ /**
133
+ * Timestamp when the route was created
134
+ */
135
+ readonly routeCreatedAt: pulumi.Output<string>;
136
+ /**
137
+ * User who created the route
138
+ */
139
+ readonly routeCreatedBy: pulumi.Output<string | undefined>;
140
+ /**
141
+ * Route name
142
+ */
143
+ readonly routeName: pulumi.Output<string | undefined>;
144
+ /**
145
+ * Route UUID
146
+ */
147
+ readonly routeUuid: pulumi.Output<string | undefined>;
148
+ /**
149
+ * List of Tags
150
+ */
151
+ readonly tags: pulumi.Output<string[] | undefined>;
152
+ /**
153
+ * Agent temperature setting
154
+ */
155
+ readonly temperature: pulumi.Output<number | undefined>;
156
+ /**
157
+ * Agent Template
158
+ */
159
+ readonly templates: pulumi.Output<outputs.GenaiAgentTemplate[] | undefined>;
160
+ /**
161
+ * Top P sampling parameter
162
+ */
163
+ readonly topP: pulumi.Output<number | undefined>;
164
+ /**
165
+ * Timestamp when the Agent was updated
166
+ */
167
+ readonly updatedAt: pulumi.Output<string>;
168
+ /**
169
+ * URL for the Agent
170
+ */
171
+ readonly url: pulumi.Output<string | undefined>;
172
+ /**
173
+ * User ID linked with the Agent
174
+ */
175
+ readonly userId: pulumi.Output<string | undefined>;
176
+ /**
177
+ * Create a GenaiAgent resource with the given unique name, arguments, and options.
178
+ *
179
+ * @param name The _unique_ name of the resource.
180
+ * @param args The arguments to use to populate this resource's properties.
181
+ * @param opts A bag of options that control this resource's behavior.
182
+ */
183
+ constructor(name: string, args: GenaiAgentArgs, opts?: pulumi.CustomResourceOptions);
184
+ }
185
+ /**
186
+ * Input properties used for looking up and filtering GenaiAgent resources.
187
+ */
188
+ export interface GenaiAgentState {
189
+ /**
190
+ * AgentGuardrail represents a Guardrail attached to Gen AI Agent
191
+ */
192
+ agentGuardrails?: pulumi.Input<pulumi.Input<inputs.GenaiAgentAgentGuardrail>[]>;
193
+ /**
194
+ * Anthropic API Key information
195
+ */
196
+ anthropicApiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentAnthropicApiKey>[]>;
197
+ /**
198
+ * Optional Anthropic API key ID to use with Anthropic models
199
+ */
200
+ anthropicKeyUuid?: pulumi.Input<string>;
201
+ /**
202
+ * List of API Key Infos
203
+ */
204
+ apiKeyInfos?: pulumi.Input<pulumi.Input<inputs.GenaiAgentApiKeyInfo>[]>;
205
+ /**
206
+ * List of API Keys
207
+ */
208
+ apiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentApiKey>[]>;
209
+ /**
210
+ * List of Chatbot Identifiers
211
+ */
212
+ chatbotIdentifiers?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChatbotIdentifier>[]>;
213
+ /**
214
+ * ChatBot configuration
215
+ */
216
+ chatbots?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChatbot>[]>;
217
+ /**
218
+ * List of child agents
219
+ */
220
+ childAgents?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChildAgent>[]>;
221
+ /**
222
+ * Timestamp when the Agent was created
223
+ */
224
+ createdAt?: pulumi.Input<string>;
225
+ /**
226
+ * List of API Key Infos
227
+ */
228
+ deployments?: pulumi.Input<pulumi.Input<inputs.GenaiAgentDeployment>[]>;
229
+ /**
230
+ * Description for the Agent
231
+ */
232
+ description?: pulumi.Input<string>;
233
+ /**
234
+ * List of Functions
235
+ */
236
+ functions?: pulumi.Input<pulumi.Input<inputs.GenaiAgentFunction>[]>;
237
+ /**
238
+ * If case condition
239
+ */
240
+ ifCase?: pulumi.Input<string>;
241
+ /**
242
+ * Instruction for the Agent
243
+ */
244
+ instruction?: pulumi.Input<string>;
245
+ /**
246
+ * K value
247
+ */
248
+ k?: pulumi.Input<number>;
249
+ /**
250
+ * Ids of the knowledge base(s) to attach to the agent
251
+ */
252
+ knowledgeBaseUuids?: pulumi.Input<pulumi.Input<string>[]>;
253
+ /**
254
+ * List of Knowledge Bases
255
+ */
256
+ knowledgeBases?: pulumi.Input<pulumi.Input<inputs.GenaiAgentKnowledgeBase>[]>;
257
+ /**
258
+ * Maximum tokens allowed
259
+ */
260
+ maxTokens?: pulumi.Input<number>;
261
+ /**
262
+ * Model UUID of the Agent
263
+ */
264
+ modelUuid?: pulumi.Input<string>;
265
+ /**
266
+ * Model of the Agent
267
+ */
268
+ models?: pulumi.Input<pulumi.Input<inputs.GenaiAgentModel>[]>;
269
+ /**
270
+ * Name of the Agent
271
+ */
272
+ name?: pulumi.Input<string>;
273
+ /**
274
+ * OpenAI API Key information
275
+ */
276
+ openAiApiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentOpenAiApiKey>[]>;
277
+ /**
278
+ * Optional OpenAI API key ID to use with OpenAI models
279
+ */
280
+ openAiKeyUuid?: pulumi.Input<string>;
281
+ /**
282
+ * List of child agents
283
+ */
284
+ parentAgents?: pulumi.Input<pulumi.Input<inputs.GenaiAgentParentAgent>[]>;
285
+ /**
286
+ * Project ID of the Agent
287
+ */
288
+ projectId?: pulumi.Input<string>;
289
+ /**
290
+ * Indicates if the agent should provide citations in responses
291
+ */
292
+ provideCitations?: pulumi.Input<boolean>;
293
+ /**
294
+ * Region where the Agent is deployed
295
+ */
296
+ region?: pulumi.Input<string>;
297
+ /**
298
+ * Retrieval method used
299
+ */
300
+ retrievalMethod?: pulumi.Input<string>;
301
+ /**
302
+ * Timestamp when the route was created
303
+ */
304
+ routeCreatedAt?: pulumi.Input<string>;
305
+ /**
306
+ * User who created the route
307
+ */
308
+ routeCreatedBy?: pulumi.Input<string>;
309
+ /**
310
+ * Route name
311
+ */
312
+ routeName?: pulumi.Input<string>;
313
+ /**
314
+ * Route UUID
315
+ */
316
+ routeUuid?: pulumi.Input<string>;
317
+ /**
318
+ * List of Tags
319
+ */
320
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
321
+ /**
322
+ * Agent temperature setting
323
+ */
324
+ temperature?: pulumi.Input<number>;
325
+ /**
326
+ * Agent Template
327
+ */
328
+ templates?: pulumi.Input<pulumi.Input<inputs.GenaiAgentTemplate>[]>;
329
+ /**
330
+ * Top P sampling parameter
331
+ */
332
+ topP?: pulumi.Input<number>;
333
+ /**
334
+ * Timestamp when the Agent was updated
335
+ */
336
+ updatedAt?: pulumi.Input<string>;
337
+ /**
338
+ * URL for the Agent
339
+ */
340
+ url?: pulumi.Input<string>;
341
+ /**
342
+ * User ID linked with the Agent
343
+ */
344
+ userId?: pulumi.Input<string>;
345
+ }
346
+ /**
347
+ * The set of arguments for constructing a GenaiAgent resource.
348
+ */
349
+ export interface GenaiAgentArgs {
350
+ /**
351
+ * AgentGuardrail represents a Guardrail attached to Gen AI Agent
352
+ */
353
+ agentGuardrails?: pulumi.Input<pulumi.Input<inputs.GenaiAgentAgentGuardrail>[]>;
354
+ /**
355
+ * Anthropic API Key information
356
+ */
357
+ anthropicApiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentAnthropicApiKey>[]>;
358
+ /**
359
+ * Optional Anthropic API key ID to use with Anthropic models
360
+ */
361
+ anthropicKeyUuid?: pulumi.Input<string>;
362
+ /**
363
+ * List of API Key Infos
364
+ */
365
+ apiKeyInfos?: pulumi.Input<pulumi.Input<inputs.GenaiAgentApiKeyInfo>[]>;
366
+ /**
367
+ * List of API Keys
368
+ */
369
+ apiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentApiKey>[]>;
370
+ /**
371
+ * List of Chatbot Identifiers
372
+ */
373
+ chatbotIdentifiers?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChatbotIdentifier>[]>;
374
+ /**
375
+ * ChatBot configuration
376
+ */
377
+ chatbots?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChatbot>[]>;
378
+ /**
379
+ * List of child agents
380
+ */
381
+ childAgents?: pulumi.Input<pulumi.Input<inputs.GenaiAgentChildAgent>[]>;
382
+ /**
383
+ * Timestamp when the Agent was created
384
+ */
385
+ createdAt?: pulumi.Input<string>;
386
+ /**
387
+ * List of API Key Infos
388
+ */
389
+ deployments?: pulumi.Input<pulumi.Input<inputs.GenaiAgentDeployment>[]>;
390
+ /**
391
+ * Description for the Agent
392
+ */
393
+ description?: pulumi.Input<string>;
394
+ /**
395
+ * List of Functions
396
+ */
397
+ functions?: pulumi.Input<pulumi.Input<inputs.GenaiAgentFunction>[]>;
398
+ /**
399
+ * If case condition
400
+ */
401
+ ifCase?: pulumi.Input<string>;
402
+ /**
403
+ * Instruction for the Agent
404
+ */
405
+ instruction: pulumi.Input<string>;
406
+ /**
407
+ * K value
408
+ */
409
+ k?: pulumi.Input<number>;
410
+ /**
411
+ * Ids of the knowledge base(s) to attach to the agent
412
+ */
413
+ knowledgeBaseUuids?: pulumi.Input<pulumi.Input<string>[]>;
414
+ /**
415
+ * List of Knowledge Bases
416
+ */
417
+ knowledgeBases?: pulumi.Input<pulumi.Input<inputs.GenaiAgentKnowledgeBase>[]>;
418
+ /**
419
+ * Maximum tokens allowed
420
+ */
421
+ maxTokens?: pulumi.Input<number>;
422
+ /**
423
+ * Model UUID of the Agent
424
+ */
425
+ modelUuid: pulumi.Input<string>;
426
+ /**
427
+ * Model of the Agent
428
+ */
429
+ models?: pulumi.Input<pulumi.Input<inputs.GenaiAgentModel>[]>;
430
+ /**
431
+ * Name of the Agent
432
+ */
433
+ name?: pulumi.Input<string>;
434
+ /**
435
+ * OpenAI API Key information
436
+ */
437
+ openAiApiKeys?: pulumi.Input<pulumi.Input<inputs.GenaiAgentOpenAiApiKey>[]>;
438
+ /**
439
+ * Optional OpenAI API key ID to use with OpenAI models
440
+ */
441
+ openAiKeyUuid?: pulumi.Input<string>;
442
+ /**
443
+ * List of child agents
444
+ */
445
+ parentAgents?: pulumi.Input<pulumi.Input<inputs.GenaiAgentParentAgent>[]>;
446
+ /**
447
+ * Project ID of the Agent
448
+ */
449
+ projectId: pulumi.Input<string>;
450
+ /**
451
+ * Indicates if the agent should provide citations in responses
452
+ */
453
+ provideCitations?: pulumi.Input<boolean>;
454
+ /**
455
+ * Region where the Agent is deployed
456
+ */
457
+ region: pulumi.Input<string>;
458
+ /**
459
+ * Retrieval method used
460
+ */
461
+ retrievalMethod?: pulumi.Input<string>;
462
+ /**
463
+ * User who created the route
464
+ */
465
+ routeCreatedBy?: pulumi.Input<string>;
466
+ /**
467
+ * Route name
468
+ */
469
+ routeName?: pulumi.Input<string>;
470
+ /**
471
+ * Route UUID
472
+ */
473
+ routeUuid?: pulumi.Input<string>;
474
+ /**
475
+ * List of Tags
476
+ */
477
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
478
+ /**
479
+ * Agent temperature setting
480
+ */
481
+ temperature?: pulumi.Input<number>;
482
+ /**
483
+ * Agent Template
484
+ */
485
+ templates?: pulumi.Input<pulumi.Input<inputs.GenaiAgentTemplate>[]>;
486
+ /**
487
+ * Top P sampling parameter
488
+ */
489
+ topP?: pulumi.Input<number>;
490
+ /**
491
+ * URL for the Agent
492
+ */
493
+ url?: pulumi.Input<string>;
494
+ /**
495
+ * User ID linked with the Agent
496
+ */
497
+ userId?: pulumi.Input<string>;
498
+ }
package/genaiAgent.js ADDED
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.GenaiAgent = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ class GenaiAgent extends pulumi.CustomResource {
9
+ /**
10
+ * Get an existing GenaiAgent resource's state with the given name, ID, and optional extra
11
+ * properties used to qualify the lookup.
12
+ *
13
+ * @param name The _unique_ name of the resulting resource.
14
+ * @param id The _unique_ provider ID of the resource to lookup.
15
+ * @param state Any extra arguments used during the lookup.
16
+ * @param opts Optional settings to control the behavior of the CustomResource.
17
+ */
18
+ static get(name, id, state, opts) {
19
+ return new GenaiAgent(name, state, Object.assign(Object.assign({}, opts), { id: id }));
20
+ }
21
+ /**
22
+ * Returns true if the given object is an instance of GenaiAgent. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj) {
26
+ if (obj === undefined || obj === null) {
27
+ return false;
28
+ }
29
+ return obj['__pulumiType'] === GenaiAgent.__pulumiType;
30
+ }
31
+ constructor(name, argsOrState, opts) {
32
+ let resourceInputs = {};
33
+ opts = opts || {};
34
+ if (opts.id) {
35
+ const state = argsOrState;
36
+ resourceInputs["agentGuardrails"] = state ? state.agentGuardrails : undefined;
37
+ resourceInputs["anthropicApiKeys"] = state ? state.anthropicApiKeys : undefined;
38
+ resourceInputs["anthropicKeyUuid"] = state ? state.anthropicKeyUuid : undefined;
39
+ resourceInputs["apiKeyInfos"] = state ? state.apiKeyInfos : undefined;
40
+ resourceInputs["apiKeys"] = state ? state.apiKeys : undefined;
41
+ resourceInputs["chatbotIdentifiers"] = state ? state.chatbotIdentifiers : undefined;
42
+ resourceInputs["chatbots"] = state ? state.chatbots : undefined;
43
+ resourceInputs["childAgents"] = state ? state.childAgents : undefined;
44
+ resourceInputs["createdAt"] = state ? state.createdAt : undefined;
45
+ resourceInputs["deployments"] = state ? state.deployments : undefined;
46
+ resourceInputs["description"] = state ? state.description : undefined;
47
+ resourceInputs["functions"] = state ? state.functions : undefined;
48
+ resourceInputs["ifCase"] = state ? state.ifCase : undefined;
49
+ resourceInputs["instruction"] = state ? state.instruction : undefined;
50
+ resourceInputs["k"] = state ? state.k : undefined;
51
+ resourceInputs["knowledgeBaseUuids"] = state ? state.knowledgeBaseUuids : undefined;
52
+ resourceInputs["knowledgeBases"] = state ? state.knowledgeBases : undefined;
53
+ resourceInputs["maxTokens"] = state ? state.maxTokens : undefined;
54
+ resourceInputs["modelUuid"] = state ? state.modelUuid : undefined;
55
+ resourceInputs["models"] = state ? state.models : undefined;
56
+ resourceInputs["name"] = state ? state.name : undefined;
57
+ resourceInputs["openAiApiKeys"] = state ? state.openAiApiKeys : undefined;
58
+ resourceInputs["openAiKeyUuid"] = state ? state.openAiKeyUuid : undefined;
59
+ resourceInputs["parentAgents"] = state ? state.parentAgents : undefined;
60
+ resourceInputs["projectId"] = state ? state.projectId : undefined;
61
+ resourceInputs["provideCitations"] = state ? state.provideCitations : undefined;
62
+ resourceInputs["region"] = state ? state.region : undefined;
63
+ resourceInputs["retrievalMethod"] = state ? state.retrievalMethod : undefined;
64
+ resourceInputs["routeCreatedAt"] = state ? state.routeCreatedAt : undefined;
65
+ resourceInputs["routeCreatedBy"] = state ? state.routeCreatedBy : undefined;
66
+ resourceInputs["routeName"] = state ? state.routeName : undefined;
67
+ resourceInputs["routeUuid"] = state ? state.routeUuid : undefined;
68
+ resourceInputs["tags"] = state ? state.tags : undefined;
69
+ resourceInputs["temperature"] = state ? state.temperature : undefined;
70
+ resourceInputs["templates"] = state ? state.templates : undefined;
71
+ resourceInputs["topP"] = state ? state.topP : undefined;
72
+ resourceInputs["updatedAt"] = state ? state.updatedAt : undefined;
73
+ resourceInputs["url"] = state ? state.url : undefined;
74
+ resourceInputs["userId"] = state ? state.userId : undefined;
75
+ }
76
+ else {
77
+ const args = argsOrState;
78
+ if ((!args || args.instruction === undefined) && !opts.urn) {
79
+ throw new Error("Missing required property 'instruction'");
80
+ }
81
+ if ((!args || args.modelUuid === undefined) && !opts.urn) {
82
+ throw new Error("Missing required property 'modelUuid'");
83
+ }
84
+ if ((!args || args.projectId === undefined) && !opts.urn) {
85
+ throw new Error("Missing required property 'projectId'");
86
+ }
87
+ if ((!args || args.region === undefined) && !opts.urn) {
88
+ throw new Error("Missing required property 'region'");
89
+ }
90
+ resourceInputs["agentGuardrails"] = args ? args.agentGuardrails : undefined;
91
+ resourceInputs["anthropicApiKeys"] = args ? args.anthropicApiKeys : undefined;
92
+ resourceInputs["anthropicKeyUuid"] = args ? args.anthropicKeyUuid : undefined;
93
+ resourceInputs["apiKeyInfos"] = args ? args.apiKeyInfos : undefined;
94
+ resourceInputs["apiKeys"] = args ? args.apiKeys : undefined;
95
+ resourceInputs["chatbotIdentifiers"] = args ? args.chatbotIdentifiers : undefined;
96
+ resourceInputs["chatbots"] = args ? args.chatbots : undefined;
97
+ resourceInputs["childAgents"] = args ? args.childAgents : undefined;
98
+ resourceInputs["createdAt"] = args ? args.createdAt : undefined;
99
+ resourceInputs["deployments"] = args ? args.deployments : undefined;
100
+ resourceInputs["description"] = args ? args.description : undefined;
101
+ resourceInputs["functions"] = args ? args.functions : undefined;
102
+ resourceInputs["ifCase"] = args ? args.ifCase : undefined;
103
+ resourceInputs["instruction"] = args ? args.instruction : undefined;
104
+ resourceInputs["k"] = args ? args.k : undefined;
105
+ resourceInputs["knowledgeBaseUuids"] = args ? args.knowledgeBaseUuids : undefined;
106
+ resourceInputs["knowledgeBases"] = args ? args.knowledgeBases : undefined;
107
+ resourceInputs["maxTokens"] = args ? args.maxTokens : undefined;
108
+ resourceInputs["modelUuid"] = args ? args.modelUuid : undefined;
109
+ resourceInputs["models"] = args ? args.models : undefined;
110
+ resourceInputs["name"] = args ? args.name : undefined;
111
+ resourceInputs["openAiApiKeys"] = args ? args.openAiApiKeys : undefined;
112
+ resourceInputs["openAiKeyUuid"] = args ? args.openAiKeyUuid : undefined;
113
+ resourceInputs["parentAgents"] = args ? args.parentAgents : undefined;
114
+ resourceInputs["projectId"] = args ? args.projectId : undefined;
115
+ resourceInputs["provideCitations"] = args ? args.provideCitations : undefined;
116
+ resourceInputs["region"] = args ? args.region : undefined;
117
+ resourceInputs["retrievalMethod"] = args ? args.retrievalMethod : undefined;
118
+ resourceInputs["routeCreatedBy"] = args ? args.routeCreatedBy : undefined;
119
+ resourceInputs["routeName"] = args ? args.routeName : undefined;
120
+ resourceInputs["routeUuid"] = args ? args.routeUuid : undefined;
121
+ resourceInputs["tags"] = args ? args.tags : undefined;
122
+ resourceInputs["temperature"] = args ? args.temperature : undefined;
123
+ resourceInputs["templates"] = args ? args.templates : undefined;
124
+ resourceInputs["topP"] = args ? args.topP : undefined;
125
+ resourceInputs["url"] = args ? args.url : undefined;
126
+ resourceInputs["userId"] = args ? args.userId : undefined;
127
+ resourceInputs["routeCreatedAt"] = undefined /*out*/;
128
+ resourceInputs["updatedAt"] = undefined /*out*/;
129
+ }
130
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
131
+ super(GenaiAgent.__pulumiType, name, resourceInputs, opts);
132
+ }
133
+ }
134
+ exports.GenaiAgent = GenaiAgent;
135
+ /** @internal */
136
+ GenaiAgent.__pulumiType = 'digitalocean:index/genaiAgent:GenaiAgent';
137
+ //# sourceMappingURL=genaiAgent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genaiAgent.js","sourceRoot":"","sources":["../genaiAgent.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAIzC,yCAAyC;AAEzC,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,UAAU,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACjE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,UAA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