Documentation
¶
Index ¶
- func CheckGoModExists() bool
- func RunGoFmt(filePath string) (string, error)
- func RunGoTest(filePath string) (string, bool, error)
- func RunInteractive(model string, provider api.Provider)
- func RunInteractiveWithResume(model string, provider api.Provider)
- func RunOnce(query string, model string)
- type Agent
- type VerifyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunInteractive ¶
Types ¶
type Agent ¶
type Agent struct {
Model string // 初期モデル(後方互換性のため保持)
CurrentModel string // 現在のモデル(再起動なしで切り替え可能)
CurrentProvider api.Provider
ProviderName string
History []api.Message
SystemPrompt string
// contains filtered or unexported fields
}
Agent はCLIエージェント
type VerifyResult ¶
type VerifyResult struct {
NeedsVerify bool // 検証が必要か
FileType string // "go", "js", "py" など
ChangedFiles []string // 変更されたファイル
FmtResult string // go fmt の結果
TestResult string // go test の結果
TestPassed bool // テスト成功したか
}
VerifyResult は検証結果
func ShouldVerify ¶
func ShouldVerify(filePath string) *VerifyResult
ShouldVerify は変更されたファイルが検証対象かを判定
Click to show internal directories.
Click to hide internal directories.