google

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func UploadFile added in v0.2.2

func UploadFile(filePath, apiKey string) (*types.File, error)

UploadFile uploads a file to Google and returns file metadata

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

func (*Provider) Agent added in v0.2.5

func (p *Provider) Agent(apiKey string) (interface{}, error)

Agent implements the internal.Provider interface

func (*Provider) Prompt added in v0.2.5

func (p *Provider) Prompt(ctx context.Context, systemPrompt, userPrompt, jsonSchema, apiKey string, settings internal.Settings, files ...internal.File) (string, error)

Prompt implements the internal.Provider interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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