providers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package providers owns the projection from operator inference settings to compiled adapter configuration.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrProviderMissingCatalog reports configured runtime state without an
	// exact catalog provider.
	ErrProviderMissingCatalog = errors.New("configured provider is missing from Starmap")
	// ErrProviderMissingOffering reports a configured provider without one
	// routable offering supported by compiled primitives.
	ErrProviderMissingOffering = errors.New("configured provider has no supported Starmap offering")
	// ErrProviderConfigurationInvalid reports invalid operational settings or
	// endpoint bindings.
	ErrProviderConfigurationInvalid = errors.New("provider runtime configuration is invalid")
)

Functions

func Availability

func Availability(activations []Activation) []runtimecatalog.AdapterAvailability

Availability projects active adapters into the runtime catalog contract.

func Configurations

func Configurations(
	configs config.ProvidersConfig,
) map[catalogs.ProviderID]Configuration

Configurations projects external settings by exact Starmap provider ID. The connector projection contains operational values only.

Types

type Activation added in v1.0.2

type Activation struct {
	ProviderID    catalogs.ProviderID
	Configuration Configuration
	Operations    []catalogs.ProviderOperation
	EndpointTypes []catalogs.EndpointType
	RequiresAuth  bool
}

Activation is the intersection of one configured catalog provider and Starport's compiled transport and authentication primitives.

func Activate added in v1.0.2

func Activate(
	catalog *catalogs.Catalog,
	transports *connectors.TransportRegistry,
	authentication *providerauth.Registry,
	configurations map[catalogs.ProviderID]Configuration,
) ([]Activation, error)

Activate derives runtime providers from catalog facts. A provider ID labels the activation but never selects compiled behavior.

type Configuration added in v1.0.2

type Configuration struct {
	Connector        connectors.ProviderConfig
	CredentialSource credentials.MaterialSource
	Profile          catalogs.ProviderCredentialProfile
}

Configuration binds operator settings and one request-time material source to an exact catalog provider. It contains no credential value.

Directories

Path Synopsis
Package byok manages API keys for external LLM providers.
Package byok manages API keys for external LLM providers.
Package connectors provides interfaces and types for LLM provider integrations
Package connectors provides interfaces and types for LLM provider integrations

Jump to

Keyboard shortcuts

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