Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAPIKey = errors.New("gemini: API key is required") ErrInvalidModel = errors.New("gemini: invalid model specified") ErrNoContent = errors.New("gemini: no content generated") ErrSystemMessage = errors.New("gemini: does not support system messages in the middle of a conversation. Use SystemInstruction option") )
Functions ¶
This section is empty.
Types ¶
type LLM ¶
type LLM struct {
// contains filtered or unexported fields
}
func (*LLM) GenerateContent ¶
func (g *LLM) GenerateContent( ctx context.Context, messages []schema.MessageContent, options ...llms.CallOption, ) (*schema.ContentResponse, error)
type Option ¶
type Option func(*options)
Option is a function type for configuring the client.
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.