google

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: AGPL-3.0 Imports: 18 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

This section is empty.

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) HasAPIKey

func (c *Client) HasAPIKey() bool

HasAPIKey returns true if the client has an API key.

func (*Client) IsAPIKeyRequired

func (c *Client) IsAPIKeyRequired() bool

IsAPIKeyRequired returns true if the client requires an API key.

func (*Client) ListModels

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

ListModels retrieves all available models using the appropriate Google API.

func (*Client) ValidateCredentials

func (c *Client) ValidateCredentials(ctx context.Context) 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