@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
164 lines • 8.7 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GradientaiAgent = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
class GradientaiAgent extends pulumi.CustomResource {
/**
* Get an existing GradientaiAgent resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name, id, state, opts) {
return new GradientaiAgent(name, state, { ...opts, id: id });
}
/** @internal */
static __pulumiType = 'digitalocean:index/gradientaiAgent:GradientaiAgent';
/**
* Returns true if the given object is an instance of GradientaiAgent. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === GradientaiAgent.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["agentGuardrails"] = state?.agentGuardrails;
resourceInputs["anthropicApiKeys"] = state?.anthropicApiKeys;
resourceInputs["anthropicKeyUuid"] = state?.anthropicKeyUuid;
resourceInputs["apiKeyInfos"] = state?.apiKeyInfos;
resourceInputs["apiKeys"] = state?.apiKeys;
resourceInputs["chatbotIdentifiers"] = state?.chatbotIdentifiers;
resourceInputs["chatbots"] = state?.chatbots;
resourceInputs["childAgents"] = state?.childAgents;
resourceInputs["createdAt"] = state?.createdAt;
resourceInputs["deployments"] = state?.deployments;
resourceInputs["description"] = state?.description;
resourceInputs["functions"] = state?.functions;
resourceInputs["ifCase"] = state?.ifCase;
resourceInputs["instruction"] = state?.instruction;
resourceInputs["k"] = state?.k;
resourceInputs["knowledgeBaseUuids"] = state?.knowledgeBaseUuids;
resourceInputs["knowledgeBases"] = state?.knowledgeBases;
resourceInputs["maxTokens"] = state?.maxTokens;
resourceInputs["modelUuid"] = state?.modelUuid;
resourceInputs["models"] = state?.models;
resourceInputs["name"] = state?.name;
resourceInputs["openAiApiKeys"] = state?.openAiApiKeys;
resourceInputs["openAiKeyUuid"] = state?.openAiKeyUuid;
resourceInputs["parentAgents"] = state?.parentAgents;
resourceInputs["projectId"] = state?.projectId;
resourceInputs["provideCitations"] = state?.provideCitations;
resourceInputs["region"] = state?.region;
resourceInputs["retrievalMethod"] = state?.retrievalMethod;
resourceInputs["routeCreatedAt"] = state?.routeCreatedAt;
resourceInputs["routeCreatedBy"] = state?.routeCreatedBy;
resourceInputs["routeName"] = state?.routeName;
resourceInputs["routeUuid"] = state?.routeUuid;
resourceInputs["tags"] = state?.tags;
resourceInputs["temperature"] = state?.temperature;
resourceInputs["templates"] = state?.templates;
resourceInputs["topP"] = state?.topP;
resourceInputs["updatedAt"] = state?.updatedAt;
resourceInputs["url"] = state?.url;
resourceInputs["userId"] = state?.userId;
resourceInputs["workspaceUuid"] = state?.workspaceUuid;
}
else {
const args = argsOrState;
if (args?.instruction === undefined && !opts.urn) {
throw new Error("Missing required property 'instruction'");
}
if (args?.modelUuid === undefined && !opts.urn) {
throw new Error("Missing required property 'modelUuid'");
}
if (args?.projectId === undefined && !opts.urn) {
throw new Error("Missing required property 'projectId'");
}
if (args?.region === undefined && !opts.urn) {
throw new Error("Missing required property 'region'");
}
resourceInputs["agentGuardrails"] = args?.agentGuardrails;
resourceInputs["anthropicApiKeys"] = args?.anthropicApiKeys;
resourceInputs["anthropicKeyUuid"] = args?.anthropicKeyUuid;
resourceInputs["apiKeyInfos"] = args?.apiKeyInfos;
resourceInputs["apiKeys"] = args?.apiKeys;
resourceInputs["chatbotIdentifiers"] = args?.chatbotIdentifiers;
resourceInputs["chatbots"] = args?.chatbots;
resourceInputs["childAgents"] = args?.childAgents;
resourceInputs["createdAt"] = args?.createdAt;
resourceInputs["deployments"] = args?.deployments;
resourceInputs["description"] = args?.description;
resourceInputs["functions"] = args?.functions;
resourceInputs["ifCase"] = args?.ifCase;
resourceInputs["instruction"] = args?.instruction;
resourceInputs["k"] = args?.k;
resourceInputs["knowledgeBaseUuids"] = args?.knowledgeBaseUuids;
resourceInputs["knowledgeBases"] = args?.knowledgeBases;
resourceInputs["maxTokens"] = args?.maxTokens;
resourceInputs["modelUuid"] = args?.modelUuid;
resourceInputs["models"] = args?.models;
resourceInputs["name"] = args?.name;
resourceInputs["openAiApiKeys"] = args?.openAiApiKeys;
resourceInputs["openAiKeyUuid"] = args?.openAiKeyUuid;
resourceInputs["parentAgents"] = args?.parentAgents;
resourceInputs["projectId"] = args?.projectId;
resourceInputs["provideCitations"] = args?.provideCitations;
resourceInputs["region"] = args?.region;
resourceInputs["retrievalMethod"] = args?.retrievalMethod;
resourceInputs["routeCreatedBy"] = args?.routeCreatedBy;
resourceInputs["routeName"] = args?.routeName;
resourceInputs["routeUuid"] = args?.routeUuid;
resourceInputs["tags"] = args?.tags;
resourceInputs["temperature"] = args?.temperature;
resourceInputs["templates"] = args?.templates;
resourceInputs["topP"] = args?.topP;
resourceInputs["url"] = args?.url;
resourceInputs["userId"] = args?.userId;
resourceInputs["workspaceUuid"] = args?.workspaceUuid;
resourceInputs["routeCreatedAt"] = undefined /*out*/;
resourceInputs["updatedAt"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const aliasOpts = { aliases: [{ type: "digitalocean:index/genaiAgent:GenaiAgent" }] };
opts = pulumi.mergeOptions(opts, aliasOpts);
super(GradientaiAgent.__pulumiType, name, resourceInputs, opts);
}
}
exports.GradientaiAgent = GradientaiAgent;
//# sourceMappingURL=gradientaiAgent.js.map