Artificial Intelligence1 min read

Bring your own model to Pulumi Agents

By · Published by Everything Blog

In short

Users are now able to integrate their preferred models directly into the Pulumi Agents environment. This functionality provides a bring-your-own-model setup designed to expand platform utility. Teams can maintain their specific computational configurations while running platform tasks.

Key points

  • Infrastructure teams can now deploy their own custom models within the Pulumi ecosystem.: Infrastructure teams can now deploy their own custom models within the Pulumi ecosystem.
  • Users gain greater autonomy by linking their preferred models to the agent environment.: Users gain greater autonomy by linking their preferred models to the agent environment.
  • The platform update focuses on enabling direct integration with external user-selected mo…: The platform update focuses on enabling direct integration with external user-selected models.

You can now run Pulumi Agents on the models your team already uses. Connect your organization’s model provider account, and your provider bills you directly for the requests your agents make. You can use that connection across your organization or give an individual agent its own choice of model.

Pulumi Agents supports OpenAI, Amazon Bedrock, Anthropic, Google (for Gemini models), Azure Foundry, and compatible endpoints. To connect one, open Agent Settings in Pulumi Cloud. Under Model provider, choose Add model provider, select your provider, and enter a name and connection details. Select Save to test the connection.

Once you’ve named a connection, you can use it in code. Here, modelProvider: "openai-platform"

tells the infrastructure review agent to use the model your team configured on that connection.

import * as pulumi from "@pulumi/pulumi";

import * as pulumiservice from "@pulumi/pulumiservice";

new pulumiservice.api.agents.Definition("infra-review", {

orgName: pulumi.getOrganization(),

name: "infra-review",

displayName: "Infrastructure Review",

customInstructions: "Review proposed infrastructure changes and summarize their impact.",

modelProvider: "openai-platform",

});

In the console, choose Set as default to use a connection for new tasks that follow your organization’s default. To…

Artificial Intelligence