google

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package google provides a unified, dynamic client for Google AI APIs (AI Studio and Vertex AI). This package provides configuration-driven behavior based on provider YAML configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCatalogEndpoint added in v0.4.0

func ValidateCatalogEndpoint(provider *catalogs.Provider) error

ValidateCatalogEndpoint validates the typed Google catalog-acquisition contract.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client acquires and normalizes model metadata from Google AI Studio or Vertex AI.

func NewClient

func NewClient(provider *catalogs.Provider) *Client

NewClient creates a new dynamic Google client that works for both AI Studio and Vertex AI.

func (*Client) Close

func (c *Client) Close() error

Close releases any resources held by the client.

func (*Client) Configure

func (c *Client) Configure(provider *catalogs.Provider)

Configure sets the provider for this client.

func (*Client) ListModels

func (c *Client) ListModels(
	ctx context.Context,
	material sources.ProviderCredentialMaterial,
) ([]catalogs.Model, error)

ListModels retrieves all available models using the appropriate Google API.

func (*Client) ValidateCredentials

func (c *Client) ValidateCredentials(
	_ context.Context,
	material sources.ProviderCredentialMaterial,
) error

ValidateCredentials validates that the client can authenticate properly.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL