Documentation
¶
Index ¶
- type Source
- func (s *Source) Catalog() catalogs.Catalog
- func (s *Source) Cleanup() error
- func (s *Source) Dependencies() []sources.Dependency
- func (s *Source) Fetch(ctx context.Context, opts ...sources.Option) error
- func (s *Source) ID() sources.ID
- func (s *Source) IsOptional() bool
- func (s *Source) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source fetches models from all provider APIs concurrently.
func (*Source) Dependencies ¶ added in v0.0.17
func (s *Source) Dependencies() []sources.Dependency
Dependencies returns the list of external dependencies. Provider source has no external dependencies.
func (*Source) Fetch ¶
Fetch creates a new catalog with models fetched from all provider APIs concurrently.
func (*Source) IsOptional ¶ added in v0.0.17
IsOptional returns whether this source is optional. Provider source is required - it's the core data source.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package anthropic provides a client for the Anthropic API.
|
Package anthropic provides a client for the Anthropic API. |
|
Package google provides a unified, dynamic client for Google AI APIs (AI Studio and Vertex AI).
|
Package google provides a unified, dynamic client for Google AI APIs (AI Studio and Vertex AI). |
|
Package openai provides a unified, dynamic client for OpenAI-compatible APIs.
|
Package openai provides a unified, dynamic client for OpenAI-compatible APIs. |
|
Package testhelper provides utilities for managing testdata files in provider tests.
|
Package testhelper provides utilities for managing testdata files in provider tests. |
Click to show internal directories.
Click to hide internal directories.