llmvalidate

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LLMAnswer

type LLMAnswer struct {
	Question    string   `json:"question"`
	Answer      string   `json:"answer"`
	Files       []string `json:"files"`
	ShortAnswer string   `json:"short_answer"`
	CodeSnippet string   `json:"code_snippet"`
}

type LLMValidateClient

type LLMValidateClient struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, apiKey string, modelName string) (*LLMValidateClient, error)

func (*LLMValidateClient) AskLLMAboutCode

func (c *LLMValidateClient) AskLLMAboutCode(
	codePath string,
	questions []string,
	subPathsOnly []string,
) ([]LLMAnswer, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL