Documentation
¶
Overview ¶
Copyright 2026 Teradata
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package catwalk provides model provider types (stub replacement for github.com/charmbracelet/catwalk).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InferenceProvider ¶
type InferenceProvider string
InferenceProvider identifies a model provider.
const ( InferenceProviderAnthropic InferenceProvider = "anthropic" InferenceProviderOpenAI InferenceProvider = "openai" InferenceProviderGoogle InferenceProvider = "google" InferenceProviderAzure InferenceProvider = "azure" InferenceProviderBedrock InferenceProvider = "bedrock" InferenceProviderOllama InferenceProvider = "ollama" )
Known inference providers.
type Model ¶
type Model struct {
ID string
Name string
Description string
ContextWindow int
MaxOutputTokens int
InputCost float64 // per 1M tokens
OutputCost float64 // per 1M tokens
Capabilities []string
}
Model represents an LLM model.
type Provider ¶
type Provider struct {
ID InferenceProvider
Name string
Type Type
Models []Model
Color string // Changed from lipgloss.Color to string
APIKeyFn func() string
}
Provider represents a model provider.
func GetProvider ¶
func GetProvider(id InferenceProvider) *Provider
GetProvider returns a provider by ID.