Skip to main content
The @guildai-services/guildai~google-compute package gives your agents access to Google Cloud compute resources through Guild’s Google Compute integration.

Authentication

  • Type: OAuth 2.0 (service account)
  • Token management: Refreshed automatically by Guild

Setup

1

Open Credentials

Go to Credentials in Guild.
2

Connect Google Compute

Click Google Compute and authorize with a Google account that has Compute permissions.

Usage

import { googleComputeTools } from "@guildai-services/guildai~google-compute"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that manages Google Cloud compute resources",
  tools: { ...googleComputeTools },
})

Selecting specific tools

Tools are named with the google_compute_ prefix. Use pick() to include only what your agent needs.
import { googleComputeTools } from "@guildai-services/guildai~google-compute"
import { llmAgent, pick } from "@guildai/agents-sdk"

export default llmAgent({
  description: "An agent that monitors compute instances",
  tools: {
    ...pick(googleComputeTools, [
      "google_compute_instances_list",
      "google_compute_instances_get",
      "google_compute_instances_start",
      "google_compute_instances_stop",
    ]),
  },
})