gemini

package
v0.0.0-...-bcb1c7f Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ask

func Ask(options AskStreamOptions) (string, error)

func AskStream

func AskStream(options AskStreamOptions) (<-chan Message, error)

Types

type AskStreamOptions

type AskStreamOptions struct {
	APIKey string
	Model  string
	Prompt string
}

type Message

type Message struct {
	Event string
	Text  string
	Error error
}

Jump to

Keyboard shortcuts

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