Documentation
¶
Index ¶
- func BuildImagePayload(path string, required bool) (map[string]any, string, error)
- func BuildReviewImages(evidence modes.CompareResult) ([]map[string]any, map[string]string, error)
- func BuildReviewPromptText(opts ReviewOptions) string
- func ExtractAssistantText(turn *turns.Turn) string
- func ReviewUsageConsoleText(result ReviewResult) string
- func ReviewUsageMarkdownLines(result ReviewResult) []string
- func SelectedAPIType(r *BootstrapResult) string
- func SelectedModel(r *BootstrapResult) string
- func SelectedProfile(r *BootstrapResult) string
- func SelectedRegistry(r *BootstrapResult) string
- func WriteInferenceSettingsDebug(w io.Writer, r *BootstrapResult) error
- func WriteReviewJSON(path string, result ReviewResult) error
- func WriteReviewMarkdown(path string, result ReviewResult) error
- type BootstrapOptions
- type BootstrapResult
- type ImageQuestionClient
- type ReviewOptions
- type ReviewResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImagePayload ¶
func BuildReviewImages ¶
func BuildReviewPromptText ¶
func BuildReviewPromptText(opts ReviewOptions) string
func ExtractAssistantText ¶
func ReviewUsageConsoleText ¶
func ReviewUsageConsoleText(result ReviewResult) string
func ReviewUsageMarkdownLines ¶
func ReviewUsageMarkdownLines(result ReviewResult) []string
func SelectedAPIType ¶
func SelectedAPIType(r *BootstrapResult) string
func SelectedModel ¶
func SelectedModel(r *BootstrapResult) string
func SelectedProfile ¶
func SelectedProfile(r *BootstrapResult) string
func SelectedRegistry ¶
func SelectedRegistry(r *BootstrapResult) string
func WriteInferenceSettingsDebug ¶
func WriteInferenceSettingsDebug(w io.Writer, r *BootstrapResult) error
func WriteReviewJSON ¶
func WriteReviewJSON(path string, result ReviewResult) error
func WriteReviewMarkdown ¶
func WriteReviewMarkdown(path string, result ReviewResult) error
Types ¶
type BootstrapOptions ¶
type BootstrapResult ¶
type BootstrapResult struct {
Parsed *values.Values
Resolved *profilebootstrap.ResolvedCLIEngineSettings
}
func ResolveEngineSettings ¶
func ResolveEngineSettings(ctx context.Context, opts BootstrapOptions) (*BootstrapResult, error)
func (*BootstrapResult) BuildEngine ¶
func (r *BootstrapResult) BuildEngine() (geppettoengine.Engine, error)
func (*BootstrapResult) Close ¶
func (r *BootstrapResult) Close()
type ImageQuestionClient ¶
type ImageQuestionClient struct {
Bootstrap *BootstrapResult
SystemPrompt string
Detail string
}
func NewImageQuestionClient ¶
func NewImageQuestionClient(bootstrap *BootstrapResult) *ImageQuestionClient
func (*ImageQuestionClient) AnswerQuestion ¶
type ReviewOptions ¶
type ReviewResult ¶
type ReviewResult struct {
Question string `json:"question"`
Answer string `json:"answer"`
Model string `json:"model,omitempty"`
Provider string `json:"provider,omitempty"`
APIType string `json:"apiType,omitempty"`
Profile string `json:"profile,omitempty"`
Registry string `json:"registry,omitempty"`
PromptSummary string `json:"promptSummary,omitempty"`
Artifacts map[string]string `json:"artifacts,omitempty"`
InferenceResult *geppettoengine.InferenceResult `json:"inferenceResult,omitempty"`
}
func ReviewCompare ¶
func ReviewCompare(ctx context.Context, bootstrap *BootstrapResult, opts ReviewOptions) (ReviewResult, error)
Click to show internal directories.
Click to hide internal directories.