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 ¶
- func ValidateCatalogEndpoint(provider *catalogs.Provider) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Configure(provider *catalogs.Provider)
- func (c *Client) ListModels(ctx context.Context, material sources.ProviderCredentialMaterial) ([]catalogs.Model, error)
- func (c *Client) ValidateCredentials(_ context.Context, material sources.ProviderCredentialMaterial) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCatalogEndpoint ¶ added in v0.4.0
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 ¶
NewClient creates a new dynamic Google client that works for both AI Studio and Vertex AI.
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.
Click to show internal directories.
Click to hide internal directories.