Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Factory ¶
Factory is a factory for creating LLM instances. If name is empty or not found, it will return the default.
func NewFactory ¶
func NewFactory( instance string, app *config.App, dependencies FactoryDependencies, mockOn ...component.MockOption, ) (Factory, error)
type FactoryConfig ¶
type FactoryConfig struct {
LLMs []Config
// contains filtered or unexported fields
}
--- Factory code block ---
func (*FactoryConfig) From ¶
func (c *FactoryConfig) From(app *config.App)
func (*FactoryConfig) Validate ¶
func (c *FactoryConfig) Validate() error
type FactoryDependencies ¶
type ProviderType ¶
type ProviderType string
const ( ProviderTypeOpenAI ProviderType = "openai" ProviderTypeOpenRouter ProviderType = "openrouter" ProviderTypeDeepSeek ProviderType = "deepseek" ProviderTypeGemini ProviderType = "gemini" ProviderTypeVolc ProviderType = "volc" // Rename MaaS to ARK. 😄 ProviderTypeSiliconFlow ProviderType = "siliconflow" )
Click to show internal directories.
Click to hide internal directories.