Versions in this module Expand all Collapse all v0 v0.1.0 Dec 1, 2026 Changes in this version + func CredentialFault(err error) error + func Encode(data any, err error) []byte + func ErrorDetails(err error) (code, hint string) + func InvalidArgument(message string) error + func NewFault(code, message, hint string, cause error) error + func OAuthManager(name string, p ProviderConfig, store credentials.Store) (*oauthclient.Manager, error) + func ValidateSearchAliases(aliases map[string][]string) error + type ActionMetrics struct + Count uint64 + DurationMillis float64 + Errors uint64 + Inflight uint64 + type CallPlan struct + Args map[string]any + Contract Capability + ContractHash string + Invoked bool + Target string + Valid bool + type Capability struct + Annotations any + Description string + ID string + InputSchema any + OutputSchema any + Protocol string + type Config struct + Credentials map[string]credentials.Definition + Providers map[string]ProviderConfig + SchemaVersion int + SearchAliases map[string][]string + func LoadConfig(path string) (c Config, err error) + func LoadConfigContext(ctx context.Context, path string) (c Config, err error) + type DiscoveryFailure struct + Code string + Hint string + Provider string + type DiscoveryResult struct + Complete bool + Failures []DiscoveryFailure + Items []Capability + type Envelope struct + Code string + Data any + Error string + Hint string + OK bool + type Fault struct + Cause error + Code string + Hint string + Message string + func (e *Fault) Error() string + func (e *Fault) Unwrap() error + type HTTPResult struct + Body any + ContentType string + Status int + type Provider interface + Close func() error + Discover func(context.Context) ([]Capability, error) + Invoke func(context.Context, string, map[string]any) (any, error) + type ProviderConfig struct + Allow []string + BearerCredential string + CatalogSource string + Command []string + Description string + Env map[string]string + EnvCredentials map[string]string + HeaderCredentials map[string]string + Headers map[string]string + Keywords []string + OAuth *oauthclient.Config + OAuthProfile string + SkillDescriptions []string + SkillFiles []string + Spec string + Transport string + Type string + URL string + type ProviderSummary struct + Description string + Name string + Type string + type Request struct + Action string + AllTools bool + Args map[string]any + BestEffort bool + Body json.RawMessage + ExpectedContract string + Full bool + HTTPQuery map[string][]string + Headers map[string]string + Limit int + Match string + Method string + Path string + ProvidersOnly bool + Query string + Refresh bool + Target string + type Runtime struct + func New(c Config, maxBytes int64) *Runtime + func NewWithCredentials(c Config, maxBytes int64, resolver *credentials.Resolver) *Runtime + func NewWithOptions(c Config, maxBytes int64, resolver *credentials.Resolver, opts RuntimeOptions) *Runtime + func (r *Runtime) Close() + func (r *Runtime) Execute(ctx context.Context, req Request) (data any, err error) + func (r *Runtime) Stats() map[string]ActionMetrics + type RuntimeOptions struct + CatalogMaxBytes int64 + CatalogTTL time.Duration + DiscoveryConcurrency int + ProviderTimeout time.Duration + type SearchIndex struct + func NewSearchIndex(caps []Capability, providers map[string]ProviderConfig) *SearchIndex + func NewSearchIndexWithAliases(caps []Capability, providers map[string]ProviderConfig, ...) (*SearchIndex, error) + func (index *SearchIndex) Search(query string) []Capability