Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultHTTPTimeout = 30 * time.Second SerperHTTPTimeout = 10 * time.Second // Serper API専用 )
HTTP Configuration
View Source
const ( MaxToolIterations = 10 // ツールループ最大回数 MaxChangeStack = 10 // Undo履歴最大保存数 MaxAPIRetries = 2 // API呼び出し最大リトライ回数 MaxSameToolCallCount = 3 // 同じツール呼び出しの最大繰り返し回数(ループ検知) )
Tool Execution Limits
View Source
const ( OutputTruncateLen = 5000 // bash出力切り詰め長 MaxDiffDisplayLines = 15 // diff表示最大行数 MaxDiffIterations = 20 // diff比較最大イテレーション )
Output Display Limits
Variables ¶
This section is empty.
Functions ¶
func ValidateModel ¶
ValidateModel は任意のモデル名を受け付ける(後方互換のため残す) 注: v0.16.0以降、モデル名の検証は行わない
Types ¶
type Config ¶
type Config struct {
DefaultProvider string `yaml:"default_provider"`
DefaultModel string `yaml:"default_model"`
ProviderModels map[string]ProviderModelConfig `yaml:"provider_models"`
}
Config はXELYON CLIの設定
func (*Config) GetModelForProvider ¶
GetModelForProvider はプロバイダーに対応するデフォルトモデルを取得
func (*Config) ValidateModelForProvider ¶
ValidateModelForProvider は任意のモデル名を受け付ける(後方互換のため残す) 注: v0.16.0以降、モデル名の検証は行わない
type ProviderModelConfig ¶
type ProviderModelConfig struct {
DefaultModel string `yaml:"default_model"`
}
ProviderModelConfig はプロバイダーごとのモデル設定
Click to show internal directories.
Click to hide internal directories.