clitypes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKey

func GetAPIKey(providerID string) string

GetAPIKey returns the API key for a provider from the environment.

Types

type ProviderMetadata

type ProviderMetadata struct {
	ID           string
	Name         string
	Description  string
	EnvVar       string
	DefaultModel string
}

ProviderMetadata holds information about a provider for CLI display.

func GetProviderMetadata

func GetProviderMetadata(id string) (ProviderMetadata, bool)

GetProviderMetadata returns metadata for a given provider ID.

func GetSupportedProviders

func GetSupportedProviders() []ProviderMetadata

GetSupportedProviders returns metadata for all supported providers.

Jump to

Keyboard shortcuts

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