models

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeChange added in v1.1.0

type CodeChange struct {
	RelativePath string `xml:"relativePath"`
	Code         string `xml:"code"`
}

CodeChange represents an individual code change with a file path and the code content.

type CodeChanges added in v1.1.0

type CodeChanges struct {
	CodeChange []CodeChange `xml:"codeChange"`
}

CodeChanges wraps multiple code changes.

type FileData

type FileData struct {
	RelativePath   string
	Code           string
	TreeSitterCode string
}

FileData holds the path and content of a file

type Suggestion added in v1.1.0

type Suggestion struct {
	CodeChanges  CodeChanges `xml:"codeChanges"`
	Explanations string      `xml:"EXPLANATIONS"`
}

Suggestion Define struct for the entire suggestion

Jump to

Keyboard shortcuts

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