Help us shape the future of Go! Take the 2026 Go Developer Survey

providers

package
v0.19.13 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKind

type AuthKind string
const AuthAPIKey AuthKind = "api_key"
const AuthOAuth AuthKind = "oauth"

type Provider

type Provider struct {
	ID      ai.ProviderID
	Name    string
	API     ai.API
	APIs    []ai.API
	BaseURL string
	Auth    AuthKind
	OAuth   bool
	Env     []string
	// APIKeyEnv is the subset of Env whose value is request authentication.
	// The remaining names configure ambient credentials or provider endpoints.
	APIKeyEnv []string
	Methods   auth.ProviderAuth
}

func Get

func Get(id ai.ProviderID) (Provider, bool)

func List

func List() []Provider

Directories

Path Synopsis
Package faux provides a scripted, in-memory provider for agent and provider tests.
Package faux provides a scripted, in-memory provider for agent and provider tests.

Jump to

Keyboard shortcuts

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