response

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelResponse

type ModelResponse struct {
	ID            ids.ModelID    `json:"id"`
	ProviderID    ids.ProviderID `json:"provider_id"`
	Slug          string         `json:"slug"`
	ExternalID    string         `json:"external_id,omitempty"`
	DisplayName   string         `json:"display_name,omitempty"`
	ContextWindow int            `json:"context_window,omitempty"`
	MaxOutput     int            `json:"max_output,omitempty"`
	InputPrice    string         `json:"input_price,omitempty"`
	OutputPrice   string         `json:"output_price,omitempty"`
	Capabilities  map[string]any `json:"capabilities,omitempty"`
	Enabled       bool           `json:"enabled"`
	Source        string         `json:"source"`
}

func FromModel

func FromModel(m domain.Model) ModelResponse

type ProviderResponse

type ProviderResponse struct {
	ID                    ids.ProviderID                   `json:"id"`
	Code                  string                           `json:"code"`
	DisplayName           string                           `json:"display_name"`
	WireFormat            string                           `json:"wire_format"`
	Source                string                           `json:"source"`
	Metadata              map[string]any                   `json:"metadata,omitempty"`
	AuthTypes             []appcatalog.AuthTypeOption      `json:"auth_types"`
	ProviderOptionsSchema []appcatalog.ProviderOptionField `json:"provider_options_schema"`
}

func FromProvider

func FromProvider(p domain.Provider) ProviderResponse

Jump to

Keyboard shortcuts

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