gemini

package
v0.0.0-...-8d4be52 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*genai.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *Config) (*Client, error)

NewClient returns reusable gemini client

func (*Client) AskToGemini

func (c *Client) AskToGemini(ctx context.Context, msg, model string) (string, error)

func (*Client) AskToGeminiStream

func (c *Client) AskToGeminiStream(ctx context.Context, msg, model string) iter.Seq2[string, error]

func (*Client) GetAllSupportedModels

func (c *Client) GetAllSupportedModels() []string

type Config

type Config struct {
	*genai.ClientConfig
	SupportedModels []string
}

Jump to

Keyboard shortcuts

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