Documentation
¶
Index ¶
- func Prompt(systemPrompt, userPrompt, jsonSchema, apiKey string, files ...types.File) (*types.GoogleResponse, error)
- func PromptWithSettings(systemPrompt, userPrompt, jsonSchema, apiKey string, ...) (*types.GoogleResponse, error)
- func UploadFile(filePath, apiKey string) (*types.File, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Prompt ¶
func Prompt(systemPrompt, userPrompt, jsonSchema, apiKey string, files ...types.File) (*types.GoogleResponse, error)
Prompt sends a prompt request to Google's Generative AI API
func PromptWithSettings ¶ added in v0.2.6
func PromptWithSettings(systemPrompt, userPrompt, jsonSchema, apiKey string, settings types.RequestSettings, files ...types.File) (*types.GoogleResponse, error)
PromptWithSettings sends a prompt request with custom settings
Types ¶
type Provider ¶ added in v0.2.5
type Provider struct{}
Provider implements the internal.Provider interface for Google
func NewProvider ¶ added in v0.2.5
func NewProvider() *Provider
NewProvider creates a new Google provider
Click to show internal directories.
Click to hide internal directories.