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 ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) Configure(provider *catalogs.Provider)
- func (c *Client) HasAPIKey() bool
- func (c *Client) IsAPIKeyRequired() bool
- func (c *Client) ListModels(ctx context.Context) ([]catalogs.Model, error)
- func (c *Client) ValidateCredentials(ctx context.Context) error
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 ¶
NewClient creates a new dynamic Google client that works for both AI Studio and Vertex AI.
func (*Client) IsAPIKeyRequired ¶
IsAPIKeyRequired returns true if the client requires an API key.
func (*Client) ListModels ¶
ListModels retrieves all available models using the appropriate Google API.
Click to show internal directories.
Click to hide internal directories.