catwalk

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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.

func GetProviders

func GetProviders() []Provider

GetProviders returns known providers.

type Type

type Type string

Type identifies a provider type.

const (
	TypeAnthropic Type = "anthropic"
	TypeOpenAI    Type = "openai"
	TypeGoogle    Type = "google"
	TypeAzure     Type = "azure"
	TypeBedrock   Type = "bedrock"
	TypeOllama    Type = "ollama"
)

Known provider types.

Jump to

Keyboard shortcuts

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