gemini

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Name       string
	Token      string
	Endpoint   string
	Prompt     genai.Part
	SafetyMode bool // default is false
}

func NewSession

func NewSession(token string) *Session

func (*Session) Ask

func (s *Session) Ask(question string) (answer string, err error)

func (*Session) SetModelEndpoint

func (s *Session) SetModelEndpoint(endpoint string)

func (*Session) SetModelName

func (s *Session) SetModelName(name string)

func (*Session) SetModelPrompt

func (s *Session) SetModelPrompt(prompt string)

func (*Session) SetSafetyMode

func (s *Session) SetSafetyMode(enabled bool)

Jump to

Keyboard shortcuts

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