Documentation
¶
Index ¶
- func New(opts []googleai.Option, toolCacheTTL time.Duration) (common.Model, error)
- type Google
- func (g *Google) Call(ctx context.Context, prompt string, options ...llms.CallOption) (string, error)
- func (g *Google) Close() error
- func (g *Google) ConsumptionOf(resp *llms.ContentResponse) common.Consumption
- func (g *Google) GenerateContent(ctx context.Context, messages []llms.MessageContent, ...) (*llms.ContentResponse, error)
- func (g *Google) PatchTools(tools *[]llms.Tool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Google ¶
type Google struct {
// contains filtered or unexported fields
}
func (*Google) ConsumptionOf ¶
func (g *Google) ConsumptionOf(resp *llms.ContentResponse) common.Consumption
func (*Google) GenerateContent ¶
func (g *Google) GenerateContent(ctx context.Context, messages []llms.MessageContent, options ...llms.CallOption) (*llms.ContentResponse, error)
Click to show internal directories.
Click to hide internal directories.