google

package module
v0.0.0-...-a0cba32 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 7 Imported by: 0

README

GAI for Google Gemini

Logo

CI

GAI client for Google Gemini models.

Made with ✨sparkles✨ by maragu: independent software consulting for cloud-native Go apps & AI engineering.

Contact me at markus@maragu.dk for consulting work, or perhaps an invoice to support this project?

Roadmap

  • Chat-completion
    • Streaming
    • System prompt
    • Tool use
    • Structured output
    • Multi-modal input
    • Multi-modal output
  • Embedding

Documentation

Index

Constants

View Source
const (
	ChatCompleteModelGemini1_5Flash = ChatCompleteModel("models/gemini-1.5-flash")
	ChatCompleteModelGemini2_0Flash = ChatCompleteModel("models/gemini-2.0-flash")
	ChatCompleteModelGemini1_5Pro   = ChatCompleteModel("models/gemini-1.5-pro")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatCompleteModel

type ChatCompleteModel string

type ChatCompleter

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

func (*ChatCompleter) ChatComplete

type Client

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

func NewClient

func NewClient(opts NewClientOptions) *Client

func (*Client) NewChatCompleter

func (c *Client) NewChatCompleter(opts NewChatCompleterOptions) *ChatCompleter

type NewChatCompleterOptions

type NewChatCompleterOptions struct {
	Model ChatCompleteModel
}

type NewClientOptions

type NewClientOptions struct {
	Key string
	Log *slog.Logger
}

Jump to

Keyboard shortcuts

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