UNPKG

@pulumi/digitalocean

Version:

A Pulumi package for creating and managing DigitalOcean cloud resources.

137 lines 7.3 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.GenaiAgent = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class GenaiAgent extends pulumi.CustomResource { /** * Get an existing GenaiAgent 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 GenaiAgent(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of GenaiAgent. 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'] === GenaiAgent.__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; } 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["routeCreatedAt"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(GenaiAgent.__pulumiType, name, resourceInputs, opts); } } exports.GenaiAgent = GenaiAgent; /** @internal */ GenaiAgent.__pulumiType = 'digitalocean:index/genaiAgent:GenaiAgent'; //# sourceMappingURL=genaiAgent.js.map