generative-ai-go

module
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0

README

Go SDK for Google Generative AI

Go Go Reference

This SDK enables developers to use Google's state-of-the-art generative AI models (like Gemini) to build AI-powered features and applications. It supports use cases like:

  • Generate text from text-only input
  • Generate text from text-and-images input (multimodal)
  • Build multi-turn conversations (chat)
  • Embedding

Try out the API

  1. Obtain an API key to use with the Google AI SDKs.
  2. Add the SDK to your module with go get github.com/google/generative-ai-go
  3. Follow the examples

Documentation

The documentation of the Google AI Go SDK is on pkg.go.dev

Find complete documentation for the Google AI SDKs and the Gemini model in the Google documentation: https://ai.google.dev/docs

For a list of the supported models and their capabilities, see https://ai.google.dev/models/gemini

Contributing

See Contributing for more information on contributing to the Google AI Go SDK.

License

The contents of this repository are licensed under the Apache License, version 2.0.

Directories

Path Synopsis
Package genai is a client for the Google AI generative models.
Package genai is a client for the Google AI generative models.
internal/generativelanguage/v1beta
Package generativelanguage provides access to the Generative Language API.
Package generativelanguage provides access to the Generative Language API.
internal/gensupport
Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool.
Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool.
internal
support
Package support provides support functions for protoveneer.
Package support provides support functions for protoveneer.

Jump to

Keyboard shortcuts

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