models

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalLanguage string
)

Functions

func PrintDataFlow

func PrintDataFlow(dataFlow []DataFlowStep)

*

  • -----------------------------------------------------------------------------
  • PrintDataFlow - Prints the data flow steps for a given variable.
  • ----------------------------------------------------------------------------- *
  • Parameters:
  • - dataFlow ([]DataFlowStep): List of data flow steps. *
  • Returns:
  • - (void): This function does not return a value. *
  • -----------------------------------------------------------------------------

Types

type AIMessage

type AIMessage struct {
	Role    string `json:"role"`
	Content string `json:"content"`
}

type AIRequestBody

type AIRequestBody struct {
	Model       string      `json:"model"`
	Messages    []AIMessage `json:"messages"`
	MaxTokens   int         `json:"max_tokens"`
	Temperature float64     `json:"temperature"`
}

type AIResponse

type AIResponse struct {
	Choices []struct {
		Message struct {
			Content string `json:"content"`
		} `json:"message"`
	} `json:"choices"`
}

type CodeLine

type CodeLine struct {
	Line    int    `json:"line"`
	Content string `json:"content"`
}

type Config

type Config struct {
	FilePath  string
	StartLine int
	Language  string
	Verbose   bool
	Debug     bool
	Variable  string
}

type DataFlow

type DataFlow struct {
	NameHighlight string     `json:"nameHighlight"`
	Line          int        `json:"line"`
	Code          []CodeLine `json:"code"`
	Language      string     `json:"language"`
	Path          string     `json:"path"`
	Type          string     `json:"type"`
	Order         int        `json:"order"`
}

type DataFlowStep

type DataFlowStep struct {
	Line     uint32
	Type     string
	Method   string
	Function string
	Value    string
	Variable string
}

DataFlowStep représente une étape dans le flux de données d'une variable.

type FunctionCallSite

type FunctionCallSite struct {
	Line     uint32
	CallNode *sitter.Node
}

type IdentifyVariableRequest

type IdentifyVariableRequest struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

type IdentifyVariableResponse

type IdentifyVariableResponse struct {
	VariableOrValue string `json:"variableOrValue"`
	IsVariable      bool   `json:"isVariable"`
}

type VisitInfo

type VisitInfo struct {
	VisitedDef   bool
	VisitedCalls map[int]bool
	VisitCount   int
}

Jump to

Keyboard shortcuts

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